From: hubicka Date: Wed, 27 Apr 2011 16:03:03 +0000 (+0000) Subject: * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f7a1122466432e54e310bebcd1b74648c06fe8c;p=thirdparty%2Fgcc.git * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173039 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2e0546954d0..46acb85595eb 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 1d40d5a49fd1..aa2f2a1e7df9 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;