aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 91565a8..0b286b8 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. */