(finish_struct): Properly update DECL_PACKED.

From-SVN: r9625
This commit is contained in:
Richard Kenner 1995-05-11 18:43:43 -04:00
parent fd378c9ddf
commit 5be1df77c9
1 changed files with 1 additions and 1 deletions

View 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. */