re PR lto/85391 (ICE in add_type_duplicate, at ipa-devirt.c:1887)
authorJan Hubicka <jh@suse.cz>
Wed, 18 Apr 2018 11:29:26 +0000 (13:29 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 18 Apr 2018 11:29:26 +0000 (11:29 +0000)
commit7d6051b12507a69c82e21fbea867dd8b0eda22c8
treee66fcfbcc312f6190043bde8bc8cfb232ac73f7e
parent8cc8789fb4063eda4dcd5efd02a0b1cd255874c8
re PR lto/85391 (ICE in add_type_duplicate, at ipa-devirt.c:1887)

PR lto/85391
* lto.c (lto_read_decls): Do not test TYPE_CANONICAL before registering odr
types.
* g++.dg/lto/pr83121_0.C: Update template.
* g++.dg/lto/pr83121_1.C: Update template.
* g++.dg/lto/pr84805_0.C: Update template.
* g++.dg/lto/pr84805_1.C: Update template.
* g++.dg/lto/pr84805_2.C: Update template.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r259464
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr83121_0.C
gcc/testsuite/g++.dg/lto/pr83121_1.C
gcc/testsuite/g++.dg/lto/pr84805_0.C
gcc/testsuite/g++.dg/lto/pr84805_1.C
gcc/testsuite/g++.dg/lto/pr84805_2.C