diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-11 18:43:43 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-11 18:43:43 -0400 |
commit | 5be1df77c9a811517d0d7af71467c6fba1267909 (patch) | |
tree | fbe382a7265e45f60b454f7a11b9e67ec38c4fa6 /gcc/c-decl.c | |
parent | fd378c9ddf0580248f4380419114208b5f2b4eab (diff) | |
download | gcc-5be1df77c9a811517d0d7af71467c6fba1267909.zip gcc-5be1df77c9a811517d0d7af71467c6fba1267909.tar.gz gcc-5be1df77c9a811517d0d7af71467c6fba1267909.tar.bz2 |
(finish_struct): Properly update DECL_PACKED.
From-SVN: r9625
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
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. */ |