tree.c: (obj_type_ref_class): Move to...
authorJan Hubicka <jh@suse.cz>
Sat, 22 Dec 2018 20:06:52 +0000 (21:06 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 22 Dec 2018 20:06:52 +0000 (20:06 +0000)
commit4611c03d2b0edefc8d8e17872ef143428f56380b
treeae0e33447d1fbef7cf93d110ce90a633b543b633
parentb5e1a724542d517b8c6861047141f8c805b6c3f9
tree.c: (obj_type_ref_class): Move to...

* tree.c: (obj_type_ref_class): Move to...
* ipa-devirt.c (obj_type_ref_class): Move to here; lookup main
odr type.
(get_odr_type): Compensate for type simplification.

* g++.dg/ipa/devirt-30.C: Add dg-do.
* g++.dg/lto/devirt-1_0.C: New testcase.
* g++.dg/lto/devirt-2_0.C: New testcase.
* g++.dg/lto/devirt-3_0.C: New testcase.
* g++.dg/lto/devirt-4_0.C: New testcase.
* g++.dg/lto/devirt-5_0.C: New testcase.
* g++.dg/lto/devirt-6_0.C: New testcase.
* g++.dg/lto/devirt-13_0.C: New testcase.
* g++.dg/lto/devirt-14_0.C: New testcase.
* g++.dg/lto/devirt-19_0.C: New testcase.
* g++.dg/lto/devirt-22_0.C: New testcase.
* g++.dg/lto/devirt-23_0.C: New testcase.
* g++.dg/lto/devirt-30_0.C: New testcase.
* g++.dg/lto/devirt-34_0.C: New testcase.

From-SVN: r267359
17 files changed:
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/devirt-30.C
gcc/testsuite/g++.dg/lto/devirt-13_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-14_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-19_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-1_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-22_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-23_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-2_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-30_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-34_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-3_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-4_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-5_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/devirt-6_0.C [new file with mode: 0644]
gcc/tree.c