diff options
author | Jason Merrill <jason@redhat.com> | 2006-07-05 22:09:02 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2006-07-05 22:09:02 -0400 |
commit | 1937f93932b3249756fbeda05a0b0c67aaed0405 (patch) | |
tree | e5a04b6dd5dab15766d0b02b4b48425818534909 /gcc/c-decl.c | |
parent | 562349cab017b2abc827517378ac50a1f4a1f438 (diff) | |
download | gcc-1937f93932b3249756fbeda05a0b0c67aaed0405.zip gcc-1937f93932b3249756fbeda05a0b0c67aaed0405.tar.gz gcc-1937f93932b3249756fbeda05a0b0c67aaed0405.tar.bz2 |
re PR c++/13983 (no warning on some non-POD struct with packed attribute)
PR c++/13983
PR c++/17519
* stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
* c-common.c (handle_packed_attribute): So don't copy it here.
* c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
* cp/class.c (check_field_decls): Check TYPE_PACKED after
stripping array types.
(finish_struct_bits): Don't copy TYPE_SIZE here.
From-SVN: r115217
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 250be0e..6ad6a69 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5574,8 +5574,6 @@ finish_struct (tree t, tree fieldlist, tree attributes) { TYPE_FIELDS (x) = TYPE_FIELDS (t); TYPE_LANG_SPECIFIC (x) = TYPE_LANG_SPECIFIC (t); - TYPE_ALIGN (x) = TYPE_ALIGN (t); - TYPE_USER_ALIGN (x) = TYPE_USER_ALIGN (t); C_TYPE_FIELDS_READONLY (x) = C_TYPE_FIELDS_READONLY (t); C_TYPE_FIELDS_VOLATILE (x) = C_TYPE_FIELDS_VOLATILE (t); C_TYPE_VARIABLE_SIZE (x) = C_TYPE_VARIABLE_SIZE (t); |