]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR lto/42451 ('warning: type of "array" does not match original declaration' with...
authorRichard Guenther <rguenther@suse.de>
Thu, 22 Jul 2010 13:47:32 +0000 (13:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 22 Jul 2010 13:47:32 +0000 (13:47 +0000)
commitd4398a43f599672b414768d1316fda2e8c8ced98
treea97a4a1d4527a63c29ed20ed56c74974b3689a8e
parent3cf8ccdf3b979989ce17ffe48a2c588606cfc5d1
re PR lto/42451 ('warning: type of "array" does not match original declaration' with -flto/-fwhopr)

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

PR lto/42451
* gimple.c (gtc_next_dfs_num): New global.
(struct sccs): Make value a union, add integer same_p member.
(gtc_visit): New function.
(gimple_types_compatible_p_1): New function, split out from ...
(gimple_types_compatible_p): ... here.  Start a DFS walk here.
(iterative_hash_gimple_type): Adjust for sccs change.

* gcc.dg/lto/20100720-3_0.c: New testcase.
* gcc.dg/lto/20100720-3_1.c: Likewise.

From-SVN: r162415
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100720-3_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20100720-3_1.c [new file with mode: 0644]