From 4d5dcfb2f00a228ae69a2d7e84077374c3eb2c37 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 27 Apr 2011 18:03:03 +0200 Subject: [PATCH] * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue. From-SVN: r173039 --- gcc/ChangeLog | 4 ++++ gcc/cgraphunit.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2e0546954d..46acb85595e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-27 Jan Hubicka + + * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue. + 2011-04-27 Uros Bizjak * config/i386/predicates.md (avx_vpermilp_*_operand): Remove. diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 1d40d5a49fd..aa2f2a1e7df 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -233,6 +233,7 @@ cgraph_process_new_functions (void) cgraph_finalize_function (fndecl, false); cgraph_mark_reachable_node (node); output = true; + cgraph_call_function_insertion_hooks (node); break; case CGRAPH_STATE_IPA: @@ -258,12 +259,14 @@ cgraph_process_new_functions (void) free_dominance_info (CDI_DOMINATORS); pop_cfun (); current_function_decl = NULL; + cgraph_call_function_insertion_hooks (node); break; case CGRAPH_STATE_EXPANSION: /* Functions created during expansion shall be compiled directly. */ node->process = 0; + cgraph_call_function_insertion_hooks (node); cgraph_expand_function (node); break; @@ -271,7 +274,6 @@ cgraph_process_new_functions (void) gcc_unreachable (); break; } - cgraph_call_function_insertion_hooks (node); varpool_analyze_pending_decls (); } return output; -- 2.30.2