diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-23 11:13:46 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-23 11:13:46 +0000 |
commit | da75178562f79c27c4c5b5b9db7080a4006cf769 (patch) | |
tree | 8583b0547a986de2a3217f54b54d037cced74b1d /gcc/cgraph.c | |
parent | 6222cbcc3d122b313e1ab96d790a23102e21999a (diff) | |
download | gcc-da75178562f79c27c4c5b5b9db7080a4006cf769.tar.gz |
* lto-symtab.c (lto_cgraph_replace_node): Do not call
mark_reahcable_node.
* cgraph.c (cgraph_remove_node): Do not clear reachable.
(cgraph_mark_reachable_node): Remove.
(cgraph_mark_force_output_node): Do not set reachable.
(dump_cgraph_node): Do not dump reachable.
(cgraph_create_virtual_clone): Do not set reachable.
* cgraph.h (cgraph_node): Remove reachable flag.
(varpool_node): Remove reachable flag.
(cgraph_mark_if_needed): Remove.
(cgraph_mark_reachable_node): Remove.
* tree-emutls.c (ipa_lower_emutls): Do not check
reachable.
* cgraphunit.c (cgraph_finalize_function): Do not mark node as
reachable.
(cgraph_add_new_function): Likewise.
(cgraph_mark_if_needed): Remove.
(cgraph_analyze_function): Do not set target as reachable.
(process_function_and_variable_attributes): Do not care about dllexport.
(cgraph_analyze_functions): Do not set reachable flags.
(cgraph_mark_functions_to_output): Do not check reachability.
(cgraph_copy_node_for_versioning): Do not set reachable flag.
(dbxout_expand_expr): Update.
* c-decl.c (merge_decls): Do not track changed externs.
* ipa.c: Include pointer-set.h
(enqueue_cgraph_node): Use reachable pointer set.
(process_references): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.
(whole_program_function_and_variable_visibility): Do not recompute reachable.
* trans-mem.c (ipa_tm_execute): Do not check reachable flag.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index ed4cdf64d08..298a030400c 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1344,7 +1344,7 @@ cgraph_remove_node (struct cgraph_node *node) /* Incremental inlining access removed nodes stored in the postorder list. */ - node->symbol.force_output = node->reachable = false; + node->symbol.force_output = false; for (n = node->nested; n; n = n->next_nested) n->origin = NULL; node->nested = NULL; @@ -1472,27 +1472,6 @@ cgraph_remove_node_and_inline_clones (struct cgraph_node *node, struct cgraph_no return found; } -/* Notify finalize_compilation_unit that given node is reachable. */ - -void -cgraph_mark_reachable_node (struct cgraph_node *node) -{ - if (!node->reachable && node->local.finalized) - { - if (cgraph_global_info_ready) - { - /* Verify that function does not appear to be needed out of blue - during the optimization process. This can happen for extern - inlines when bodies was removed after inlining. */ - gcc_assert ((node->analyzed || node->symbol.in_other_partition - || DECL_EXTERNAL (node->symbol.decl))); - } - else - notice_global_symbol (node->symbol.decl); - node->reachable = 1; - } -} - /* Likewise indicate that a node is needed, i.e. reachable via some external means. */ @@ -1501,7 +1480,6 @@ cgraph_mark_force_output_node (struct cgraph_node *node) { node->symbol.force_output = 1; gcc_assert (!node->global.inlined_to); - cgraph_mark_reachable_node (node); } /* Likewise indicate that a node is having address taken. */ @@ -1510,7 +1488,6 @@ void cgraph_mark_address_taken_node (struct cgraph_node *node) { gcc_assert (!node->global.inlined_to); - cgraph_mark_reachable_node (node); /* FIXME: address_taken flag is used both as a shortcut for testing whether IPA_REF_ADDR reference exists (and thus it should be set on node representing alias we take address of) and as a test whether address @@ -1621,8 +1598,6 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node) (HOST_WIDEST_INT)node->count); if (node->origin) fprintf (f, " nested in: %s", cgraph_node_asm_name (node->origin)); - else if (node->reachable) - fprintf (f, " reachable"); if (gimple_has_body_p (node->symbol.decl)) fprintf (f, " body"); if (node->process) @@ -2048,7 +2023,6 @@ cgraph_create_virtual_clone (struct cgraph_node *old_node, new_node->symbol.externally_visible = 0; new_node->local.local = 1; new_node->lowered = true; - new_node->reachable = true; cgraph_call_node_duplication_hooks (old_node, new_node); |