PR ipa/66223
commit53fa0e546fadc467ed17b048a24a5a9d319b62ef
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 16:49:50 +0000 (19 16:49 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 16:49:50 +0000 (19 16:49 +0000)
tree56b15965ef3ed95b347438b20a83a9f117a03cf6
parent557a99fe9b89763161796e5b71f63b9a2c807576
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.

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