mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-28 03:20:28 +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))
|
for (x = fieldlist; x; x = TREE_CHAIN (x))
|
||||||
{
|
{
|
||||||
DECL_CONTEXT (x) = t;
|
DECL_CONTEXT (x) = t;
|
||||||
DECL_PACKED (x) = TYPE_PACKED (t);
|
DECL_PACKED (x) |= TYPE_PACKED (t);
|
||||||
DECL_FIELD_SIZE (x) = 0;
|
DECL_FIELD_SIZE (x) = 0;
|
||||||
|
|
||||||
/* If any field is const, the structure type is pseudo-const. */
|
/* If any field is const, the structure type is pseudo-const. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user