diff options
author | Jason Merrill <jason@redhat.com> | 2003-08-20 08:24:18 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-08-20 08:24:18 -0400 |
commit | 3acef2ae63e40303a73a7559939689c397c0450d (patch) | |
tree | 5de64ab02077a2ceccd6dd2c4e277f161bd8ac99 /gcc/tree.c | |
parent | 8f7d850c97a24f9809bfc3f9505d508e8b011000 (diff) | |
download | gcc-3acef2ae63e40303a73a7559939689c397c0450d.zip gcc-3acef2ae63e40303a73a7559939689c397c0450d.tar.gz gcc-3acef2ae63e40303a73a7559939689c397c0450d.tar.bz2 |
stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from TYPE_USER_ALIGN for FIELD_DECLs.
* stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
TYPE_USER_ALIGN for FIELD_DECLs.
* attribs.c (decl_attributes): Rebuild the function pointer type after
changing the target type.
* tree.c (get_qualified_type): Also check that the attributes match.
From-SVN: r70597
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2849,7 +2849,8 @@ get_qualified_type (tree type, int type_quals) preserve the TYPE_NAME, since there is code that depends on this. */ for (t = TYPE_MAIN_VARIANT (type); t; t = TYPE_NEXT_VARIANT (t)) if (TYPE_QUALS (t) == type_quals && TYPE_NAME (t) == TYPE_NAME (type) - && TYPE_CONTEXT (t) == TYPE_CONTEXT (type)) + && TYPE_CONTEXT (t) == TYPE_CONTEXT (type) + && attribute_list_equal (TYPE_ATTRIBUTES (t), TYPE_ATTRIBUTES (type))) return t; return NULL_TREE; |