OSDN Git Service

* stor-layout.c (layout_decl): Avoid syntax error in last change
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2003 09:01:13 +0000 (09:01 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2003 09:01:13 +0000 (09:01 +0000)
when PCC_BITFIELD_TYPE_MATTERS is defined but not
EMPTY_FIELD_BOUNDARY.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65234 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stor-layout.c

index b890b9c..b6c047d 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 c840481..106c7c6 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.