re PR debug/51567 (ICE in splice_child_die, at dwarf2out.c:5009 with -flto -g)
authorRichard Guenther <rguenther@suse.de>
Thu, 15 Dec 2011 16:38:08 +0000 (16:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 15 Dec 2011 16:38:08 +0000 (16:38 +0000)
commitee7a54c550753ba90949d1fea472e0586b6cd954
treec953b72b7d663af460cc1abd3269cf69ca79d5ae
parent6a2045bfd3938fe09a026f5d7ff041e28c94950e
re PR debug/51567 (ICE in splice_child_die, at dwarf2out.c:5009 with -flto -g)

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.

From-SVN: r182377
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr51567-1_0.C [new file with mode: 0644]