diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-06 02:09:02 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-06 02:09:02 +0000 |
commit | 2bc7da70381f8e12129c1c470aee18ccaf465e0b (patch) | |
tree | e5a04b6dd5dab15766d0b02b4b48425818534909 /gcc/c-decl.c | |
parent | d14c819e7e3a6da5fe3a553067fdbe60890b89e5 (diff) | |
download | gcc-2bc7da70381f8e12129c1c470aee18ccaf465e0b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115217 138bc75d-0d04-0410-961f-82ee72b054a4
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 250be0e055d..6ad6a695d08 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); |