OSDN Git Service

(finish_struct): Properly update DECL_PACKED.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 1995 22:43:43 +0000 (22:43 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 May 1995 22:43:43 +0000 (22:43 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9625 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 91565a8..0b286b8 100644 (file)
@@ -5447,7 +5447,7 @@ finish_struct (t, fieldlist, attributes)
   for (x = fieldlist; x; x = TREE_CHAIN (x))
     {
       DECL_CONTEXT (x) = t;
-      DECL_PACKED (x) = TYPE_PACKED (t);
+      DECL_PACKED (x) |= TYPE_PACKED (t);
       DECL_FIELD_SIZE (x) = 0;
 
       /* If any field is const, the structure type is pseudo-const.  */