re PR rtl-optimization/45621 (ICE: verify_cgraph_node failed: inlined_to pointer...
commit97ba0040a84c942562074621f4b550774e0c38e7
authorJan Hubicka <jh@suse.cz>
Fri, 15 Oct 2010 01:20:55 +0000 (15 03:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 15 Oct 2010 01:20:55 +0000 (15 01:20 +0000)
tree02fe16310bd09fdf1d3c23fde7236a1aa760fb1b
parent23ac8b8d6aac34d9c9014c95a70b09e0e43e039e
re PR rtl-optimization/45621 (ICE: verify_cgraph_node failed: inlined_to pointer is set but no predecessors found with -fipa-cp-clone -flto)

PR middle-end/45621
* g++.dg/lto/pr45621.h : New.
* g++.dg/lto/pr45621_0.C: New.
* g++.dg/lto/pr45621_1.C: New.
* cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
redirected to clone, be happy.
* cgraph.h (cgraph node): Enable former_clone_of unconditinally.
* cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
former_clone_of unconditinally.

From-SVN: r165492
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr45621.h [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr45621_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr45621_1.C [new file with mode: 0644]