Compare TREE_ADDRESSABLE and TYPE_MODE when ODR checking types.
authorJan Hubicka <jh@suse.cz>
Tue, 14 Jan 2020 20:45:03 +0000 (21:45 +0100)
committerJan Hubicka <jh@suse.cz>
Tue, 14 Jan 2020 20:52:36 +0000 (21:52 +0100)
commit288c5324bf6e418dd94d718d1619464a4f68ff8e
tree0aeb7ca7aeb55f06a2386cc2bba740480d758465
parent757bf1dff5e8cee34c0a75d06140ca972bfecfa7
Compare TREE_ADDRESSABLE and TYPE_MODE when ODR checking types.

PR lto/91576
* ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
TYPE_MODE.

* testsuite/g++.dg/lto/odr-8_0.C: New testcase.
* testsuite/g++.dg/lto/odr-8_1.C: New testcase.
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/odr-8_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/odr-8_1.C [new file with mode: 0644]