diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 91565a8f12b..0b286b82899 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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. */