re PR lto/88142 (ICE in lto_warn at ipa-devirt.c:1020 since r265519)
authorJan Hubicka <jh@suse.cz>
Thu, 22 Nov 2018 23:10:57 +0000 (00:10 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 22 Nov 2018 23:10:57 +0000 (23:10 +0000)
commitbbbef996fbbe153780d55c4bf0a8deeee5e7c3e5
treeb888de064a3861f4602fabf1e6ad29106fb95261
parentd7dce787ebe0df76e9811d3565ad3ce113bfee78
re PR lto/88142 (ICE in lto_warn at ipa-devirt.c:1020 since r265519)

PR lto/88142
* ipa-devirt.c (type_variants_equivalent_p): Drop warn and warned
parameters; do not warn here.
(odr_subtypes_equivalent_p): Likewise.
(warn_odr): Fix typo.
(warn_types_mismatch): Do not output confused warnings on integer types.
(odr_types_equivalent_p): Update.

* g++.dg/lto/odr-5_0.C: New testcase.
* g++.dg/lto/odr-5_1.C: New testcase.

From-SVN: r266396
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/odr-4_0.C
gcc/testsuite/g++.dg/lto/odr-5_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/odr-5_1.C [new file with mode: 0644]