re PR ipa/87957 (ICE tree check: expected tree that contains ‘decl minimal’ structure...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 20 Nov 2018 16:22:19 +0000 (17:22 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 20 Nov 2018 16:22:19 +0000 (16:22 +0000)
commit7656fa3e63f3d0f7e57db1aebcbb1c80c12ad44a
treef42788f9966e44cdf0e9ca812e03b82c726f265a
parent33f3393ab5cc809f2636cc3ce86b3032177c91b8
re PR ipa/87957 (ICE tree check: expected tree that contains ‘decl minimal’ structure, have ‘identifier_node’ in warn_odr, at ipa-devirt.c:1051 since r265519)

PR lto/87957
* ipa-devirt.c (odr_subtypes_equivalent_p): Report ODR violation
when sybtype already violates ODR.
(get_odr_type): Do not ICE when insert is false and type duplicate
is not registered yet.
(register_odr_type): Be sure to register subtypes first.

From-SVN: r266322
gcc/ChangeLog
gcc/ipa-devirt.c