diff options
| -rw-r--r-- | gcc/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/stor-layout.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dca029b..65e8ed7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 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 ADJUST_FIELD_ALIGN when computing the alignment for a zero-width bitfield when PCC_BITFIELD_TYPE_MATTERS. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 21791fc..c4fdaee 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -724,7 +724,9 @@ update_alignment_for_field (rli, field, known_align) else if (! DECL_PACKED (field)) { desired_align = TYPE_ALIGN (type); +#ifdef ADJUST_FIELD_ALIGN desired_align = ADJUST_FIELD_ALIGN (field, desired_align); +#endif } /* A named bit field of declared type `int' |
