OSDN Git Service

2011-12-15 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 16:38:08 +0000 (16:38 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 16:38:08 +0000 (16:38 +0000)
commit4f3bff831367fbc16103d0039801ac81b7926107
treec953b72b7d663af460cc1abd3269cf69ca79d5ae
parentd42ef213184eec5bc0657a86d2a43631b159ddf9
2011-12-15  Richard Guenther  <rguenther@suse.de>

PR lto/51567
* gimple.c (compare_type_names_p): Also compare the TREE_CODE.
(iterative_hash_name): Also hash the TREE_CODE.
(gimple_types_compatible_p_1): For types with a TYPE_DECL
name and a type DECL_CONTEXT recurse to that type.
(iterative_hash_gimple_type): Likewise.

* g++.dg/lto/pr51567-1_0.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182377 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr51567-1_0.C [new file with mode: 0644]