diff options
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 268f0777cfd..31ecec9af99 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -2554,7 +2554,6 @@ compute_inline_parameters (struct cgraph_node *node, bool early) HOST_WIDE_INT self_stack_size; struct cgraph_edge *e; struct inline_summary *info; - tree old_decl = current_function_decl; gcc_assert (!node->global.inlined_to); @@ -2581,7 +2580,6 @@ compute_inline_parameters (struct cgraph_node *node, bool early) } /* Even is_gimple_min_invariant rely on current_function_decl. */ - current_function_decl = node->symbol.decl; push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); /* Estimate the stack size for the function if we're optimizing. */ @@ -2623,7 +2621,6 @@ compute_inline_parameters (struct cgraph_node *node, bool early) info->size = info->self_size; info->stack_frame_offset = 0; info->estimated_stack_size = info->estimated_self_stack_size; - current_function_decl = old_decl; pop_cfun (); } @@ -3554,7 +3551,6 @@ static void inline_analyze_function (struct cgraph_node *node) { push_cfun (DECL_STRUCT_FUNCTION (node->symbol.decl)); - current_function_decl = node->symbol.decl; if (dump_file) fprintf (dump_file, "\nAnalyzing function: %s/%u\n", @@ -3563,7 +3559,6 @@ inline_analyze_function (struct cgraph_node *node) inline_indirect_intraprocedural_analysis (node); compute_inline_parameters (node, false); - current_function_decl = NULL; pop_cfun (); } |