diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-31 21:26:14 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-31 21:26:14 +0000 |
commit | 452659afd19793cef456ed9d607f88ed0106700d (patch) | |
tree | f027b7dfe45942a8ae7ec9d539dbfe1b2330a706 /gcc/cgraphunit.c | |
parent | a908ea1c7c717dd7a0bb313377fc2ca3960e06d3 (diff) | |
download | gcc-452659afd19793cef456ed9d607f88ed0106700d.tar.gz |
Automated part of renaming of symtab_node_base to symtab_node.
gcc/
Patch autogenerated by rename_symtab.py from
https://github.com/davidmalcolm/gcc-refactoring-scripts
revision 58bb219cc090b2f4516a9297d868c245495ee622
with ChangeLog entry fixed up by hand.
* cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
symtab_node.
(cgraph_node_for_asm): Likewise.
* cgraph.h (symtab_node_base): Likewise.
(cgraph_node): Likewise.
(varpool_node): Likewise.
(is_a_helper <cgraph_node>::test): Likewise.
(is_a_helper <varpool_node>::test): Likewise.
(symtab_nodes): Likewise.
(symtab_register_node): Likewise.
(symtab_unregister_node): Likewise.
(symtab_remove_node): Likewise.
(symtab_get_node): Likewise.
(symtab_node_for_asm): Likewise.
(symtab_node_asm_name): Likewise.
(symtab_node_name): Likewise.
(symtab_insert_node_to_hashtable): Likewise.
(symtab_add_to_same_comdat_group): Likewise.
(symtab_dissolve_same_comdat_group_list): Likewise.
(dump_symtab_node): Likewise.
(debug_symtab_node): Likewise.
(dump_symtab_base): Likewise.
(verify_symtab_node): Likewise.
(verify_symtab_base): Likewise.
(symtab_used_from_object_file_p): Likewise.
(symtab_alias_ultimate_target): Likewise.
(symtab_resolve_alias): Likewise.
(fixup_same_cpp_alias_visibility): Likewise.
(symtab_for_node_and_aliases): Likewise.
(symtab_nonoverwritable_alias): Likewise.
(availability symtab_node_availability): Likewise.
(symtab_semantically_equivalent_p): Likewise.
(fixup_same_cpp_alias_visibility): Likewise.
(symtab_prevail_in_asm_name_hash): Likewise.
(cgraph): Likewise.
(varpool): Likewise.
(varpool_first_variable): Likewise.
(varpool_next_variable): Likewise.
(varpool_first_static_initializer): Likewise.
(varpool_next_static_initializer): Likewise.
(varpool_first_defined_variable): Likewise.
(varpool_next_defined_variable): Likewise.
(cgraph_first_defined_function): Likewise.
(cgraph_next_defined_function): Likewise.
(cgraph_first_function): Likewise.
(cgraph_next_function): Likewise.
(cgraph_first_function_with_gimple_body): Likewise.
(cgraph_next_function_with_gimple_body): Likewise.
(symtab_alias_target): Likewise.
(symtab_real_symbol_p): Likewise.
(symtab_can_be_discarded): Likewise.
* cgraphbuild.c (mark_address): Likewise.
(mark_load): Likewise.
(mark_store): Likewise.
* cgraphunit.c (decide_is_symbol_needed): Likewise.
(first): Likewise.
(enqueue_node): Likewise.
(referred_to_p): Likewise.
(cgraph_process_same_body_aliases): Likewise.
(analyze_functions): Likewise.
(handle_alias_pairs): Likewise.
(output_weakrefs): Likewise.
(compile): Likewise.
* gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
* ipa-inline-analysis.c (inline_write_summary): Likewise.
* ipa-prop.c (remove_described_reference): Likewise.
(try_decrement_rdesc_refcount): Likewise.
(ipa_edge_duplication_hook): Likewise.
* ipa-ref.c (ipa_record_reference): Likewise.
(ipa_maybe_record_reference): Likewise.
(ipa_clone_ref): Likewise.
(ipa_clone_references): Likewise.
(ipa_clone_referring): Likewise.
(ipa_find_reference): Likewise.
(ipa_remove_stmt_references): Likewise.
(ipa_clear_stmts_in_references): Likewise.
* ipa-ref.h (symtab_node_base): Likewise.
(ipa_ref): Likewise.
(ipa_record_reference): Likewise.
(ipa_maybe_record_reference): Likewise.
(ipa_clone_references): Likewise.
(ipa_clone_referring): Likewise.
(ipa_clone_ref): Likewise.
(ipa_find_reference): Likewise.
(ipa_remove_stmt_references): Likewise.
(ipa_clear_stmts_in_references): Likewise.
* ipa-reference.c (ipa_reference_write_optimization_summary):
Likewise.
* ipa.c (enqueue_node): Likewise.
(process_references): Likewise.
(walk_polymorphic_call_targets): Likewise.
(symtab_remove_unreachable_nodes): Likewise.
(address_taken_from_non_vtable_p): Likewise.
(comdat_can_be_unshared_p_1): Likewise.
(comdat_can_be_unshared_p): Likewise.
(can_replace_by_local_alias): Likewise.
(function_and_variable_visibility): Likewise.
* is-a.h: Likewise (within example in comment).
* lto-cgraph.c (input_cgraph_opt_summary): Likewise.
(lto_symtab_encoder_encode): Likewise.
(lto_symtab_encoder_delete_node): Likewise.
(lto_symtab_encoder_in_partition_p): Likewise.
(lto_set_symtab_encoder_in_partition): Likewise.
(output_refs): Likewise.
(compute_ltrans_boundary): Likewise.
(output_symtab): Likewise.
(input_node): Likewise.
(input_ref): Likewise.
(input_edge): Likewise.
(input_cgraph_1): Likewise.
(input_refs): Likewise.
(output_cgraph_opt_summary): Likewise.
(input_node_opt_summary): Likewise.
(input_cgraph_opt_section): Likewise.
* lto-section-in.c (lto_free_function_in_decl_state_for_node):
Likewise.
* lto-streamer-out.c (lto_output): Likewise.
(output_symbol_p): Likewise.
(produce_symtab): Likewise.
* lto-streamer.h (lto_encoder_entry): Likewise.
(lto_free_function_in_decl_state_for_node): Likewise.
(lto_symtab_encoder_encode): Likewise.
(lto_symtab_encoder_delete_node): Likewise.
(lto_symtab_encoder_in_partition_p): Likewise.
(lto_set_symtab_encoder_in_partition): Likewise.
(lto_symtab_encoder_lookup): Likewise.
(lsei_node): Likewise.
(lto_symtab_encoder_deref): Likewise.
* symtab.c (symtab_hash): Likewise.
(assembler_name_hash): Likewise.
(symtab_nodes): Likewise.
(hash_node): Likewise.
(eq_node): Likewise.
(hash_node_by_assembler_name): Likewise.
(eq_assembler_name): Likewise.
(insert_to_assembler_name_hash): Likewise.
(unlink_from_assembler_name_hash): Likewise.
(symtab_prevail_in_asm_name_hash): Likewise.
(symtab_register_node): Likewise.
(symtab_insert_node_to_hashtable): Likewise.
(symtab_unregister_node): Likewise.
(symtab_get_node): Likewise.
(symtab_remove_node): Likewise.
(symtab_initialize_asm_name_hash): Likewise.
(symtab_node_for_asm): Likewise.
(symtab_add_to_same_comdat_group): Likewise.
(symtab_dissolve_same_comdat_group_list): Likewise.
(symtab_node_asm_name): Likewise.
(symtab_node_name): Likewise.
(dump_symtab_base): Likewise.
(dump_symtab_node): Likewise.
(dump_symtab): Likewise.
(debug_symtab_node): Likewise.
(verify_symtab_base): Likewise.
(verify_symtab_node): Likewise.
(verify_symtab): Likewise.
(symtab_used_from_object_file_p): Likewise.
(symtab_node_availability): Likewise.
(symtab_alias_ultimate_target): Likewise.
(fixup_same_cpp_alias_visibility): Likewise.
(symtab_resolve_alias): Likewise.
(symtab_for_node_and_aliases): Likewise.
(symtab_for_node_and_aliases): Likewise.
(symtab_nonoverwritable_alias_1): Likewise.
(symtab_nonoverwritable_alias): Likewise.
(symtab_semantically_equivalent_p): Likewise.
* value-prof.c (init_node_map): Likewise.
* varasm.c (find_decl): Likewise.
* varpool.c (varpool_node_for_asm): Likewise.
(varpool_remove_unreferenced_decls): Likewise.
gcc/c-family/
Patch autogenerated by rename_symtab.py from
https://github.com/davidmalcolm/gcc-refactoring-scripts
revision 58bb219cc090b2f4516a9297d868c245495ee622
* c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
symtab_node_base to symtab_node.
gcc/lto/
Patch autogenerated by rename_symtab.py from
https://github.com/davidmalcolm/gcc-refactoring-scripts
revision 58bb219cc090b2f4516a9297d868c245495ee622
* lto-partition.c (add_symbol_to_partition): Rename
symtab_node_base to symtab_node.
(get_symbol_class): Likewise.
(symbol_partitioned_p): Likewise.
(add_references_to_partition): Likewise.
(add_symbol_to_partition_1): Likewise.
(contained_in_symbol): Likewise.
(add_symbol_to_partition): Likewise.
(lto_1_to_1_map): Likewise.
(lto_max_map): Likewise.
(lto_balanced_map): Likewise.
(privatize_symbol_name): Likewise.
(promote_symbol): Likewise.
(may_need_named_section_p): Likewise.
(rename_statics): Likewise.
(lto_promote_statics_nonwpa): Likewise.
* lto-symtab.c (lto_symtab_merge): Likewise.
(lto_symtab_resolve_replaceable_p): Likewise.
(lto_symtab_symbol_p): Likewise.
(lto_symtab_resolve_can_prevail_p): Likewise.
(lto_symtab_resolve_symbols): Likewise.
(lto_symtab_merge_decls_2): Likewise.
(lto_symtab_merge_decls_1): Likewise.
(lto_symtab_merge_decls): Likewise.
(lto_symtab_merge_symbols_1): Likewise.
(lto_symtab_merge_symbols): Likewise.
(lto_symtab_prevailing_decl): Likewise.
* lto.c (lto_wpa_write_files): Likewise.
(read_cgraph_and_symbols): Likewise.
(do_whole_program_analysis): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 39fb1427b6c..c3a8967e843 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -225,7 +225,7 @@ static GTY (()) tree vtable_entry_type; either outside this translation unit, something magic in the system configury */ bool -decide_is_symbol_needed (symtab_node node) +decide_is_symbol_needed (symtab_node *node) { tree decl = node->decl; @@ -263,13 +263,13 @@ decide_is_symbol_needed (symtab_node node) /* Head of the queue of nodes to be processed while building callgraph */ -static symtab_node first = (symtab_node)(void *)1; +static symtab_node *first = (symtab_node *)(void *)1; /* Add NODE to queue starting at FIRST. The queue is linked via AUX pointers and terminated by pointer to 1. */ static void -enqueue_node (symtab_node node) +enqueue_node (symtab_node *node) { if (node->aux) return; @@ -387,7 +387,7 @@ cgraph_reset_node (struct cgraph_node *node) /* Return true when there are references to NODE. */ static bool -referred_to_p (symtab_node node) +referred_to_p (symtab_node *node) { struct ipa_ref *ref; @@ -671,14 +671,14 @@ analyze_function (struct cgraph_node *node) void cgraph_process_same_body_aliases (void) { - symtab_node node; + symtab_node *node; FOR_EACH_SYMBOL (node) if (node->cpp_implicit_alias && !node->analyzed) symtab_resolve_alias (node, TREE_CODE (node->alias_target) == VAR_DECL - ? (symtab_node)varpool_node_for_decl (node->alias_target) - : (symtab_node)cgraph_get_create_node (node->alias_target)); + ? (symtab_node *)varpool_node_for_decl (node->alias_target) + : (symtab_node *)cgraph_get_create_node (node->alias_target)); cpp_implicit_aliases_done = true; } @@ -920,8 +920,8 @@ analyze_functions (void) struct varpool_node *first_handled_var = first_analyzed_var; struct pointer_set_t *reachable_call_targets = pointer_set_create (); - symtab_node node; - symtab_node next; + symtab_node *node; + symtab_node *next; int i; struct ipa_ref *ref; bool changed = true; @@ -977,11 +977,11 @@ analyze_functions (void) /* Lower representation, build callgraph edges and references for all trivially needed symbols and all symbols referred by them. */ - while (first != (symtab_node)(void *)1) + while (first != (symtab_node *)(void *)1) { changed = true; node = first; - first = (symtab_node)first->aux; + first = (symtab_node *)first->aux; cgraph_node *cnode = dyn_cast <cgraph_node> (node); if (cnode && cnode->definition) { @@ -1040,7 +1040,7 @@ analyze_functions (void) if (node->same_comdat_group) { - symtab_node next; + symtab_node *next; for (next = node->same_comdat_group; next != node; next = next->same_comdat_group) @@ -1126,7 +1126,7 @@ handle_alias_pairs (void) for (i = 0; alias_pairs && alias_pairs->iterate (i, &p);) { - symtab_node target_node = symtab_node_for_asm (p->target); + symtab_node *target_node = symtab_node_for_asm (p->target); /* Weakrefs with target not defined in current unit are easy to handle: they behave just as external variables except we need to note the @@ -1134,7 +1134,7 @@ handle_alias_pairs (void) if (!target_node && lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl)) != NULL) { - symtab_node node = symtab_get_node (p->decl); + symtab_node *node = symtab_get_node (p->decl); if (node) { node->alias_target = p->target; @@ -1147,7 +1147,7 @@ handle_alias_pairs (void) else if (!target_node) { error ("%q+D aliased to undefined symbol %qE", p->decl, p->target); - symtab_node node = symtab_get_node (p->decl); + symtab_node *node = symtab_get_node (p->decl); if (node) node->alias = false; alias_pairs->unordered_remove (i); @@ -2049,7 +2049,7 @@ get_alias_symbol (tree decl) static void output_weakrefs (void) { - symtab_node node; + symtab_node *node; FOR_EACH_SYMBOL (node) if (node->alias && !TREE_ASM_WRITTEN (node->decl) @@ -2171,7 +2171,7 @@ compile (void) level by physically rewritting the IL. At the moment we can only redirect calls, so we need infrastructure for renaming references as well. */ #ifndef ASM_OUTPUT_WEAKREF - symtab_node node; + symtab_node *node; FOR_EACH_SYMBOL (node) if (node->alias |