diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-23 02:10:18 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-23 02:10:18 +0000 |
commit | 4ce0b7f41352e23b7028aedd24d6757b472e44cf (patch) | |
tree | c690c9aebf9f42277b73fbc81bb18b0315490a4b /gcc/stor-layout.c | |
parent | c6e5371c5d11a537aba47b62f5e6e1a5d7f4d04d (diff) | |
download | gcc-4ce0b7f41352e23b7028aedd24d6757b472e44cf.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 0dd8fc61f1d..21791fccf0d 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -722,7 +722,10 @@ update_alignment_for_field (rli, field, known_align) if (! integer_zerop (DECL_SIZE (field))) rli->record_align = MAX (rli->record_align, desired_align); else if (! DECL_PACKED (field)) - desired_align = TYPE_ALIGN (type); + { + desired_align = TYPE_ALIGN (type); + desired_align = ADJUST_FIELD_ALIGN (field, desired_align); + } /* A named bit field of declared type `int' forces the entire structure to have `int' alignment. */ |