re PR middle-end/51929 (ICE: verify_cgraph_node failed with -O2 -fno-guess-branch...
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Feb 2012 07:25:58 +0000 (08:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Feb 2012 07:25:58 +0000 (08:25 +0100)
commit183d6db2a841e44e7556769b14e2a2ff083cc89b
treea72eeb1420381f51d00eb4b4f3f3e8f019444c21
parenta64b24bdef4f6406cb21befd3daf015c5d8954cd
re PR middle-end/51929 (ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone)

PR middle-end/51929
* cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
a same_body_alias, also test whether e->callee isn't a former
or current clone of the decl this is a same body alias of.

* g++.dg/ipa/pr51929.C: New test.

From-SVN: r184301
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr51929.C [new file with mode: 0644]