PR c/28706
commit9369a09f9c4ae34d6fdc31ba67fe91d2a8cc9bbc
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Sep 2006 07:15:37 +0000 (23 07:15 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Sep 2006 07:15:37 +0000 (23 07:15 +0000)
tree23d01a3bd7d49c49d7f4b60bd073b43567826b34
parente693d7f1bd565ae51674ee0a1cd8faa8011d4836
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117167 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28706.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr28712.c [new file with mode: 0644]
gcc/tree.c