re PR lto/84044 (Spurious -Wodr warning with -flto)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 21 Nov 2018 02:38:43 +0000 (03:38 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 21 Nov 2018 02:38:43 +0000 (02:38 +0000)
commit48d1f31d1b7131e8f809ede8256e4f1eb6c5c3ae
treed9521deeb7ea397d51336ba8b4f0c535f582706b
parentd3d684c642943cb5a481fcc38e0ee46ee8b1223c
re PR lto/84044 (Spurious -Wodr warning with -flto)

PR lto/84044
* ipa-devirt.c (odr_types_equivalent_p): Use operand_equal_p to
compare ENUM values.
* g++.dg/lto/odr-4_0.C: New testcase.
* g++.dg/lto/odr-4_1.C: New testcase.

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