devirt-34.C: New testcase.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 30 Jul 2014 07:48:13 +0000 (09:48 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 30 Jul 2014 07:48:13 +0000 (07:48 +0000)
commita0fd33735af6e5694238563a8ab40be029060660
treebb01706109f71a5e58004af1b340b038a77eb8d7
parentbb3ec3881ef26805aa0b9a58b871004d25cca9bc
devirt-34.C: New testcase.

* g++.dg/ipa/devirt-34.C: New testcase.
* ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
to speculative_targets
(get_class_context): Fix handling of contextes without outer type;
avoid matching non-polymorphic types in LTO.
(possible_polymorphic_call_targets): Trun nonconstruction_targetsp
parameter to speculative_targetsp; handle speculation.
(dump_possible_polymorphic_call_targets): Update dumping.

From-SVN: r213232
gcc/ChangeLog
gcc/common.opt
gcc/ipa-devirt.c
gcc/testsuite/g++.dg/ipa/devirt-34.C [new file with mode: 0644]