diff options
author | Andreas Schwab <schwab@suse.de> | 2003-04-04 09:01:13 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2003-04-04 09:01:13 +0000 |
commit | ad3f5759fed8a446739cebe7d23bbf3610bc69f8 (patch) | |
tree | df3161e55260456908c07d337f3d49cc55e0f491 | |
parent | 2f2f6d4634686c85e4f96a0a62b0d8863b9dec30 (diff) | |
download | gcc-ad3f5759fed8a446739cebe7d23bbf3610bc69f8.zip gcc-ad3f5759fed8a446739cebe7d23bbf3610bc69f8.tar.gz gcc-ad3f5759fed8a446739cebe7d23bbf3610bc69f8.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/stor-layout.c | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b890b9c..b6c047d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> PR c/10175 diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index c840481..106c7c6 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -445,13 +445,15 @@ layout_decl (decl, known_align) do_type_align (type, decl); else #endif + { #ifdef EMPTY_FIELD_BOUNDARY - if (EMPTY_FIELD_BOUNDARY > DECL_ALIGN (decl)) - { - DECL_ALIGN (decl) = EMPTY_FIELD_BOUNDARY; - DECL_USER_ALIGN (decl) = 0; - } + if (EMPTY_FIELD_BOUNDARY > DECL_ALIGN (decl)) + { + DECL_ALIGN (decl) = EMPTY_FIELD_BOUNDARY; + DECL_USER_ALIGN (decl) = 0; + } #endif + } } /* See if we can use an ordinary integer mode for a bit-field. |