diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-04-20 21:22:14 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-04-20 21:22:14 -0400 |
commit | d42d380a16e8f858c7df399bba9993a39734edd8 (patch) | |
tree | a0ff19bb434353906b5c67202f4e7f1a1048503a /gcc/stor-layout.c | |
parent | 957a1c32939d1e25e76c87ad5323f05be825bc11 (diff) | |
download | gcc-d42d380a16e8f858c7df399bba9993a39734edd8.zip gcc-d42d380a16e8f858c7df399bba9993a39734edd8.tar.gz gcc-d42d380a16e8f858c7df399bba9993a39734edd8.tar.bz2 |
(layout_record): Use ADJUST_FIELD_ALIGN to modify alignment of fields
within records.
From-SVN: r11859
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index a67418b..e7510fe 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -353,6 +353,9 @@ layout_record (rec) #ifdef BIGGEST_FIELD_ALIGNMENT desired_align = MIN (desired_align, BIGGEST_FIELD_ALIGNMENT); #endif +#ifdef ADJUST_FIELD_ALIGN + desired_align = ADJUST_FIELD_ALIGN (field, desired_align); +#endif /* Record must have at least as much alignment as any field. Otherwise, the alignment of the field within the record |