Commit d317855e by Mark Mitchell Committed by Mark Mitchell

stor-layout.c (update_alignment_for_field): Guard use of ADJUST_FIELD_ALIGN with #ifdef.

	* stor-layout.c (update_alignment_for_field): Guard use of
	ADJUST_FIELD_ALIGN with #ifdef.

From-SVN: r60422
parent 66b77cb0
2002-12-22 Mark Mitchell <mark@codesourcery.com> 2002-12-22 Mark Mitchell <mark@codesourcery.com>
* stor-layout.c (update_alignment_for_field): Guard use of
ADJUST_FIELD_ALIGN with #ifdef.
* stor-layout.c (update_alignment_for_field): Use * stor-layout.c (update_alignment_for_field): Use
ADJUST_FIELD_ALIGN when computing the alignment for a zero-width ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
bitfield when PCC_BITFIELD_TYPE_MATTERS. bitfield when PCC_BITFIELD_TYPE_MATTERS.
......
...@@ -724,7 +724,9 @@ update_alignment_for_field (rli, field, known_align) ...@@ -724,7 +724,9 @@ update_alignment_for_field (rli, field, known_align)
else if (! DECL_PACKED (field)) else if (! DECL_PACKED (field))
{ {
desired_align = TYPE_ALIGN (type); desired_align = TYPE_ALIGN (type);
#ifdef ADJUST_FIELD_ALIGN
desired_align = ADJUST_FIELD_ALIGN (field, desired_align); desired_align = ADJUST_FIELD_ALIGN (field, desired_align);
#endif
} }
/* A named bit field of declared type `int' /* A named bit field of declared type `int'
......
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