[Bug c/28712] [4.0/4.1/4.2 Regression] Compile failure with --combine and packed structures.
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 23 07:16:00 GMT 2006
------- Comment #3 from jakub at gcc dot gnu dot org 2006-09-23 07:15 -------
Subject: Bug 28712
Author: jakub
Date: Sat Sep 23 07:15:37 2006
New Revision: 117167
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117167
Log:
PR c/28706
PR c/28712
* tree.c (merge_attributes, attribute_list_contained): If both
TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
simple_cst_equal.
* c-typeck.c (comptypes_internal): Don't consider aggregates
in different TUs as compatible if there one set of attributes is
not a subset of the other type's attributes.
(composite_type): Try harder not to create a new aggregate type.
* gcc.dg/pr28706.c: New test.
* gcc.dg/pr28712.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr28706.c
trunk/gcc/testsuite/gcc.dg/pr28712.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28712
More information about the Gcc-bugs
mailing list