aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-11-04 00:19:59 +0100
committerJan Hubicka <jh@suse.cz>2020-11-04 00:19:59 +0100
commitab4664eb73f9401a5ca65d21cdf87d69fe0026dc (patch)
tree60524595ea5de0b47cc7ad19ad96119358147ba2 /gcc/cgraph.h
parente7144372e06bf446d1bfb529806a803467ba697a (diff)
downloadgcc-ab4664eb73f9401a5ca65d21cdf87d69fe0026dc.zip
gcc-ab4664eb73f9401a5ca65d21cdf87d69fe0026dc.tar.gz
gcc-ab4664eb73f9401a5ca65d21cdf87d69fe0026dc.tar.bz2
Fix copying of clone_info while reshaping clone tree.
2020-11-04 Jan Hubicka <hubicka@ucw.cz> PR ipa/97695 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with in dumping code. (cgraph_node::remove): Save clone info before releasing it and pass it to unregister. * cgraph.h (symtab_node::unregister): Add clone_info parameter. (cgraph_clone::unregister): Likewise. * cgraphclones.c (cgraph_node::find_replacement): Copy clone info * symtab-clones.cc (clone_infos_t::duplicate): Remove. (clone_info::get_create): Simplify. * symtab.c (symtab_node::unregister): Pass around clone info. * varpool.c (varpool_node::remove): Update.
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index cd22676..c87180f 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -631,7 +631,7 @@ protected:
/* Remove node from symbol table. This function is not used directly, but via
cgraph/varpool node removal routines. */
- void unregister (void);
+ void unregister (struct clone_info *);
/* Return the initialization and finalization priority information for
DECL. If there is no previous priority information, a freshly
@@ -949,7 +949,7 @@ struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node
/* cgraph node being removed from symbol table; see if its entry can be
replaced by other inline clone. */
- cgraph_node *find_replacement (void);
+ cgraph_node *find_replacement (struct clone_info *);
/* Create a new cgraph node which is the new version of
callgraph node. REDIRECT_CALLERS holds the callers