From 71cafea943fbb7a69a92c80e6dfdb5de119bfb33 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 8 Aug 2013 16:15:15 +0200 Subject: cgraphbuild.c (build_cgraph_edges): Do not walk into debugs. * 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. From-SVN: r201601 --- gcc/ipa-split.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/ipa-split.c') diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index c83c4d0..faf7c84 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -1223,6 +1223,7 @@ split_function (struct split_point *split_point) DECL_FUNCTION_CODE (node->symbol.decl) = (enum built_in_function) 0; } cgraph_node_remove_callees (cur_node); + ipa_remove_all_references (&cur_node->symbol.ref_list); if (!split_part_return_p) TREE_THIS_VOLATILE (node->symbol.decl) = 1; if (dump_file) -- cgit v1.1