diff options
author | Jan Hubicka <jh@suse.cz> | 2012-05-10 22:17:36 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2012-05-10 20:17:36 +0000 |
commit | 04142cc3bdcc6277e8ba16d15851c7270cc351dc (patch) | |
tree | 18ba5f9010349d86c117dab0e950fe951713a9c8 /gcc/cgraph.c | |
parent | 3af2e3b5b222b87032188da8fb05f3fcaa497d66 (diff) | |
download | gcc-04142cc3bdcc6277e8ba16d15851c7270cc351dc.zip gcc-04142cc3bdcc6277e8ba16d15851c7270cc351dc.tar.gz gcc-04142cc3bdcc6277e8ba16d15851c7270cc351dc.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index d7c4f0d..88ef1f1 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1162,7 +1162,7 @@ cgraph_release_function_body (struct cgraph_node *node) /* If the node is abstract and needed, then do not clear DECL_INITIAL of its associated function function declaration because it's needed to emit debug info later. */ - if (!node->abstract_and_needed) + if (!node->abstract_and_needed && DECL_INITIAL (node->symbol.decl)) DECL_INITIAL (node->symbol.decl) = error_mark_node; } |