]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR lto/44889 (Bogus "type of ‘nsLayoutModule_NSModule’ does not match original...
authorRichard Guenther <rguenther@suse.de>
Sat, 10 Jul 2010 08:39:46 +0000 (08:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 10 Jul 2010 08:39:46 +0000 (08:39 +0000)
commitbcee752ee514ebef752a6a8e4088b5669c8d3790
treef95de652429f2b6544137000cfc168804f88e923
parent7e9b96974abe5a74beaab2f90d3b47bb52f97db1
re PR lto/44889 (Bogus "type of ‘nsLayoutModule_NSModule’ does not match original declaration" waning compiling Mozilla)

2010-07-10  Richard Guenther  <rguenther@suse.de>

PR lto/44889
* gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
helper function.
(gimple_types_compatible_p): Similar to pointed-to
types allow and merge a mix of complete and incomplete aggregate.
Use gimple_fixup_complete_and_incomplete_subtype_p for that.
(iterative_hash_gimple_type): Adjust for that.

* gcc.dg/lto/20100709-1_0.c: New testcase.
* gcc.dg/lto/20100709-1_1.c: Likewise.

From-SVN: r162032
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100709-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20100709-1_1.c [new file with mode: 0644]