aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-13 06:13:46 +0000
committerJan Hubicka <jh@suse.cz>2010-05-13 06:13:46 +0000
commit6c178d21969ded74ac6faeec6fdfd3051331324f (patch)
treeeb2005967068c3a8ec31dce8fb4dc415f37fe993 /gcc/tree-profile.c
parent48fea77d569a2ee6d2bbfa2935ce8bf7ca3521e2 (diff)
* cgraph.c (cgraph_mark_address_taken_node): No longer imply needed flag.
* cgraph.h (cgraph_only_called_directly_p, cgraph_can_remove_if_no_direct_calls_p): test address_taken flag. (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function. * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken. (assemble * ipa.c (cgraph_remove_unreachable_nodes): Use cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken flags. * tree-inline.c (copy_bb): Check address_taken flag. * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and externally_visible flag. * tree-ssa/unreachable.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@159354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index a907510a840..6c2d1bd9e80 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -345,7 +345,7 @@ tree_gen_ic_func_profiler (void)
gimple stmt1, stmt2;
tree tree_uid, cur_func;
- if (!c_node->needed)
+ if (cgraph_only_called_directly_p (c_node))
return;
tree_init_edge_profiler ();