aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-13 08:13:46 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-13 06:13:46 +0000
commitbd3cdcc0872c2ce75d82ecc5a426cb3ace641d0f (patch)
treeeb2005967068c3a8ec31dce8fb4dc415f37fe993 /gcc/tree-profile.c
parent73647d75199a9e5c8a0e2e049d1f70b86d43c8f4 (diff)
downloadgcc-bd3cdcc0872c2ce75d82ecc5a426cb3ace641d0f.zip
gcc-bd3cdcc0872c2ce75d82ecc5a426cb3ace641d0f.tar.gz
gcc-bd3cdcc0872c2ce75d82ecc5a426cb3ace641d0f.tar.bz2
cgraph.c (cgraph_mark_address_taken_node): No longer imply needed flag.
* 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. From-SVN: r159354
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 a907510..6c2d1bd 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 ();