From d74bf9d54f1aad3bfddacacb436a1cec81e7b6af Mon Sep 17 00:00:00 2001 From: kenner Date: Thu, 11 May 1995 22:43:43 +0000 Subject: [PATCH] (finish_struct): Properly update DECL_PACKED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9625 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.7.4