re PR middle-end/48661 (wrong-code regression with devirtualization)
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Apr 2011 21:58:51 +0000 (23:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Apr 2011 21:58:51 +0000 (23:58 +0200)
commit848257079a98c2fa9c7d5a8cc666f7c0798e5ec0
tree9c65ab447ce980a3d0817af30fab2a1d53ba99f8
parent37a8ccfcdcfe73378717101f82767760ae35f5a5
re PR middle-end/48661 (wrong-code regression with devirtualization)

PR middle-end/48661
* gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
if TREE_TYPE (v) is non-NULL.

* gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
gimple_get_virt_mehtod_for_binfo.
* gimple.h (gimple_get_virt_method_for_binfo): Likewise.
* ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
callers.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.

* g++.dg/torture/pr48661.C: New test.

From-SVN: r172677
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple.h
gcc/ipa-cp.c
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr48661.C [new file with mode: 0644]