* g++.dg/ipa/devirt-34.C: New testcase.
commit01cb9cf792422ba7809475a477e859cfa93d176d
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jul 2014 07:48:13 +0000 (30 07:48 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jul 2014 07:48:13 +0000 (30 07:48 +0000)
treebb01706109f71a5e58004af1b340b038a77eb8d7
parent4dd4ac768fa98463bcb31e949d64c9b5a7120331
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213232 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/common.opt
gcc/ipa-devirt.c
gcc/testsuite/g++.dg/ipa/devirt-34.C [new file with mode: 0644]