diff options
author | Jan Hubicka <jh@suse.cz> | 2010-10-15 03:20:55 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-10-15 01:20:55 +0000 |
commit | 97ba0040a84c942562074621f4b550774e0c38e7 (patch) | |
tree | 02fe16310bd09fdf1d3c23fde7236a1aa760fb1b /gcc/cgraph.h | |
parent | 23ac8b8d6aac34d9c9014c95a70b09e0e43e039e (diff) | |
download | gcc-97ba0040a84c942562074621f4b550774e0c38e7.zip gcc-97ba0040a84c942562074621f4b550774e0c38e7.tar.gz gcc-97ba0040a84c942562074621f4b550774e0c38e7.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 330c883..d7ca67c 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -227,11 +227,8 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.previous"))) cgraph_node { /* For functions with many calls sites it holds map from call expression to the edge to speed up cgraph_edge function. */ htab_t GTY((param_is (struct cgraph_edge))) call_site_hash; -#ifdef ENABLE_CHECKING - /* Declaration node used to be clone of. Used for checking only. - We must skip it or we get references from release checking GGC files. */ - tree GTY ((skip)) former_clone_of; -#endif + /* Declaration node used to be clone of. */ + tree former_clone_of; PTR GTY ((skip)) aux; |