PR ipa/58252
commit10a8f02fba207588fe837d5ead071c8e62049a73
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jan 2014 09:33:24 +0000 (10 09:33 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jan 2014 09:33:24 +0000 (10 09:33 +0000)
treec00d40de8dff450430f5f9dc1048fecc0b0bc1f7
parenta5e3873d0cc9fb910e3cc2b6b28b383fc9f701b5
PR ipa/58252
PR ipa/59226
* ipa-devirt.c record_target_from_binfo): Take as argument
stack of binfos and lookup matching one for virtual inheritance.
(possible_polymorphic_call_targets_1): Update.

* g++.dg/ipa/devirt-20.C: New testcase.
* g++.dg/torture/pr58252.C: Likewise.
* g++.dg/torture/pr59226.C: Likewise.

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