Commit ad3f5759 by Andreas Schwab Committed by Andreas Schwab

stor-layout.c (layout_decl): Avoid syntax error in last change when…

stor-layout.c (layout_decl): Avoid syntax error in last change when PCC_BITFIELD_TYPE_MATTERS is defined but...

	* stor-layout.c (layout_decl): Avoid syntax error in last change
	when PCC_BITFIELD_TYPE_MATTERS is defined but not
	EMPTY_FIELD_BOUNDARY.

From-SVN: r65234
parent 2f2f6d46
2003-04-04 Andreas Schwab <schwab@suse.de>
* stor-layout.c (layout_decl): Avoid syntax error in last change
when PCC_BITFIELD_TYPE_MATTERS is defined but not
EMPTY_FIELD_BOUNDARY.
2003-04-03 Jason Merrill <jason@redhat.com> 2003-04-03 Jason Merrill <jason@redhat.com>
PR c/10175 PR c/10175
......
...@@ -445,13 +445,15 @@ layout_decl (decl, known_align) ...@@ -445,13 +445,15 @@ layout_decl (decl, known_align)
do_type_align (type, decl); do_type_align (type, decl);
else else
#endif #endif
{
#ifdef EMPTY_FIELD_BOUNDARY #ifdef EMPTY_FIELD_BOUNDARY
if (EMPTY_FIELD_BOUNDARY > DECL_ALIGN (decl)) if (EMPTY_FIELD_BOUNDARY > DECL_ALIGN (decl))
{ {
DECL_ALIGN (decl) = EMPTY_FIELD_BOUNDARY; DECL_ALIGN (decl) = EMPTY_FIELD_BOUNDARY;
DECL_USER_ALIGN (decl) = 0; DECL_USER_ALIGN (decl) = 0;
} }
#endif #endif
}
} }
/* See if we can use an ordinary integer mode for a bit-field. /* See if we can use an ordinary integer mode for a bit-field.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment