From 9df17e791314bc9ed3b603098ab5b775bf8297a4 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 8 Aug 2013 14:15:15 +0000 Subject: * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs. (make_pass_rebuild_cgraph_edges): Also clear references. * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier. * ipa-inline-transform.c (inline_transform): Remove all references after inlining. * cgraphunit.c (expand_function): Remove all references after expansion. * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting. (ipa_find_reference): Rewrite to iterator. (remove_stmt_references): Likewise. (ipa_clear_stmts_in_references): New function. * ipa-ref.h (ipa_clear_stmts_in_references): Declare. * cgraphclones.c (cgraph_materialize_all_clones): Remove or clear references. * ipa-split.c (split_function): Remove references in split function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201601 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ipa-inline-transform.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/ipa-inline-transform.c') diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 5e666aee387..54b113ac000 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -414,6 +414,7 @@ inline_transform (struct cgraph_node *node) for (e = node->callees; e; e = e->next_callee) cgraph_redirect_edge_call_stmt_to_callee (e); + ipa_remove_all_references (&node->symbol.ref_list); timevar_push (TV_INTEGRATION); if (node->callees) -- cgit v1.2.1