mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 19:41:06 +08:00
(finish_struct): Properly update DECL_PACKED.
From-SVN: r9625
This commit is contained in:
parent
fd378c9ddf
commit
5be1df77c9
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user