]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR c/28706 (Compile failure with --combine and explicitly aligned structures)
authorJakub Jelinek <jakub@redhat.com>
Sat, 23 Sep 2006 07:15:37 +0000 (09:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 23 Sep 2006 07:15:37 +0000 (09:15 +0200)
commitfcb99e7b22ce96bd71076e16bff502cedb310e55
tree23d01a3bd7d49c49d7f4b60bd073b43567826b34
parent6a7c793f3ef153f68fec135b0f8bca78ec9da324
re PR c/28706 (Compile failure with --combine and explicitly aligned structures)

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.

From-SVN: r117167
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