From 04142cc3bdcc6277e8ba16d15851c7270cc351dc Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 10 May 2012 22:17:36 +0200 Subject: cgraph.h (cgraph_remove_unreachable_nodes): Rename to ... * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ... (symtab_remove_unreachable_nodes): ... this one. * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes. * cgraphunit.c (ipa_passes): Update. * cgraphclones.c (cgraph_materialize_all_clones): Update. * cgraph.c (cgraph_release_function_body): Only turn initial into error mark when initial was previously set. * ipa-inline.c (ipa_inline): Update. * ipa.c: Include ipa-inline.h (enqueue_cgraph_node, enqueue_varpool_node): Remove. (enqueue_node): New function. (process_references): Update. (symtab_remove_unreachable_nodes): Cleanup. * passes.c (execute_todo, execute_one_pass): Update. From-SVN: r187375 --- gcc/passes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index c90c223..c2addb1 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1865,7 +1865,7 @@ execute_todo (unsigned int flags) if (flags & TODO_remove_functions) { gcc_assert (!cfun); - cgraph_remove_unreachable_nodes (true, dump_file); + symtab_remove_unreachable_nodes (true, dump_file); } if ((flags & TODO_dump_symtab) && dump_file && !current_function_decl) @@ -2150,7 +2150,7 @@ execute_one_pass (struct opt_pass *pass) bool applied = false; do_per_function (apply_ipa_transforms, (void *)&applied); if (applied) - cgraph_remove_unreachable_nodes (true, dump_file); + symtab_remove_unreachable_nodes (true, dump_file); /* Restore current_pass. */ current_pass = pass; } -- cgit v1.1