]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
re PR ipa/66223 (Diagnostic of pure virtual function call broken, including __cxa_pur...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 Jan 2016 16:49:50 +0000 (17:49 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Jan 2016 16:49:50 +0000 (16:49 +0000)
commitceda2c69d52197199c97e8fe054abd7d17e5378f
tree56b15965ef3ed95b347438b20a83a9f117a03cf6
parentb1b6d906cd37ca1dc8246e29818d39a5949389c0
re PR ipa/66223 (Diagnostic of pure virtual function call broken, including __cxa_pure_virtual)

PR ipa/66223
* ipa-devirt.c (is_cxa_pure_virtual_p): New function.
(maybe_record_node): Record cxa_pure_virtual as the only possible
target if there are not ohter candidates.
(possible_polymorphic_call_target_p): Accept cxa_pure_virtual.

* g++.dg/ipa/devirt-50.C: New testcase.

From-SVN: r232572
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/devirt-50.C [new file with mode: 0644]