re PR ipa/67056 (Wrong code generated)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 21 Oct 2015 21:14:06 +0000 (23:14 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 21 Oct 2015 21:14:06 +0000 (21:14 +0000)
commit74bb77094f3b512e146f61c2e218c842f4a8d53b
tree12fd4877448080c5a10e84c2b07669d069128d20
parent1567db2f02e005b7a3349aedf0afb37c36260beb
re PR ipa/67056 (Wrong code generated)

PR ipa/67056
* ipa-polymorphic-call.c (possible_placement_new): If cur_offset
is negative we don't know the type.
(check_stmt_for_type_change): Skip constructors of non-polymorphic
types as those won't help devirutalization.
* g++.dg/ipa/pr67056.C: New testcase.

From-SVN: r229148
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr67056.C [new file with mode: 0644]