diff options
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 3416094f841..19e5869c14b 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -893,7 +893,7 @@ pass_manager::dump_passes () const create_pass_tab (); FOR_EACH_FUNCTION (n) - if (DECL_STRUCT_FUNCTION (n->symbol.decl)) + if (DECL_STRUCT_FUNCTION (n->decl)) { node = n; break; @@ -902,7 +902,7 @@ pass_manager::dump_passes () const if (!node) return; - push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); + push_cfun (DECL_STRUCT_FUNCTION (node->decl)); dump_pass_list (all_lowering_passes, 1); dump_pass_list (all_small_ipa_passes, 1); @@ -1577,10 +1577,10 @@ do_per_function (void (*callback) (void *data), void *data) { struct cgraph_node *node; FOR_EACH_DEFINED_FUNCTION (node) - if (node->symbol.analyzed && gimple_has_body_p (node->symbol.decl) - && (!node->clone_of || node->symbol.decl != node->clone_of->symbol.decl)) + if (node->analyzed && gimple_has_body_p (node->decl) + && (!node->clone_of || node->decl != node->clone_of->decl)) { - push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); + push_cfun (DECL_STRUCT_FUNCTION (node->decl)); callback (data); if (!flag_wpa) { @@ -1627,7 +1627,7 @@ do_per_function_toporder (void (*callback) (void *data), void *data) if (cgraph_function_with_gimple_body_p (node)) { cgraph_get_body (node); - push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); + push_cfun (DECL_STRUCT_FUNCTION (node->decl)); callback (data); free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_POST_DOMINATORS); @@ -2368,19 +2368,19 @@ ipa_write_summaries (void) ordering then matches the one IPA-passes get in their stmt_fixup hooks. */ - push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); + push_cfun (DECL_STRUCT_FUNCTION (node->decl)); renumber_gimple_stmt_uids (); pop_cfun (); } - if (node->symbol.definition) - lto_set_symtab_encoder_in_partition (encoder, (symtab_node)node); + if (node->definition) + lto_set_symtab_encoder_in_partition (encoder, node); } FOR_EACH_DEFINED_FUNCTION (node) - if (node->symbol.alias) - lto_set_symtab_encoder_in_partition (encoder, (symtab_node)node); + if (node->alias) + lto_set_symtab_encoder_in_partition (encoder, node); FOR_EACH_DEFINED_VARIABLE (vnode) - lto_set_symtab_encoder_in_partition (encoder, (symtab_node)vnode); + lto_set_symtab_encoder_in_partition (encoder, vnode); ipa_write_summaries_1 (compute_ltrans_boundary (encoder)); @@ -2446,10 +2446,10 @@ ipa_write_optimization_summaries (lto_symtab_encoder_t encoder) For functions newly born at WPA stage we need to initialize the uids here. */ - if (node->symbol.definition - && gimple_has_body_p (node->symbol.decl)) + if (node->definition + && gimple_has_body_p (node->decl)) { - push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); + push_cfun (DECL_STRUCT_FUNCTION (node->decl)); renumber_gimple_stmt_uids (); pop_cfun (); } @@ -2691,11 +2691,11 @@ function_called_by_processed_nodes_p (void) e; e = e->next_caller) { - if (e->caller->symbol.decl == current_function_decl) + if (e->caller->decl == current_function_decl) continue; if (!cgraph_function_with_gimple_body_p (e->caller)) continue; - if (TREE_ASM_WRITTEN (e->caller->symbol.decl)) + if (TREE_ASM_WRITTEN (e->caller->decl)) continue; if (!e->caller->process && !e->caller->global.inlined_to) break; |