]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
stor-layout.c (layout_decl): Avoid syntax error in last change when PCC_BITFIELD_TYPE...
authorAndreas Schwab <schwab@suse.de>
Fri, 4 Apr 2003 09:01:13 +0000 (09:01 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 4 Apr 2003 09:01:13 +0000 (09:01 +0000)
* 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

gcc/ChangeLog
gcc/stor-layout.c

index b890b9c982497a58d7126907218ba04e66b670dc..b6c047d1cda6aa50f6bcbc75c4ae13261417d9d8 100644 (file)
@@ -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
index c840481ec4f94d61b7f77e271b7f547accf14e1b..106c7c6e65d42ed5670406bceef5a0222e3d5df0 100644 (file)
@@ -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.