Commit 4d5dcfb2 by Jan Hubicka Committed by Jan Hubicka

* cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.

From-SVN: r173039
parent c224bdc1
2011-04-27 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2011-04-27 Uros Bizjak <ubizjak@gmail.com> 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
* config/i386/predicates.md (avx_vpermilp_*_operand): Remove. * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
......
...@@ -233,6 +233,7 @@ cgraph_process_new_functions (void) ...@@ -233,6 +233,7 @@ cgraph_process_new_functions (void)
cgraph_finalize_function (fndecl, false); cgraph_finalize_function (fndecl, false);
cgraph_mark_reachable_node (node); cgraph_mark_reachable_node (node);
output = true; output = true;
cgraph_call_function_insertion_hooks (node);
break; break;
case CGRAPH_STATE_IPA: case CGRAPH_STATE_IPA:
...@@ -258,12 +259,14 @@ cgraph_process_new_functions (void) ...@@ -258,12 +259,14 @@ cgraph_process_new_functions (void)
free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_DOMINATORS);
pop_cfun (); pop_cfun ();
current_function_decl = NULL; current_function_decl = NULL;
cgraph_call_function_insertion_hooks (node);
break; break;
case CGRAPH_STATE_EXPANSION: case CGRAPH_STATE_EXPANSION:
/* Functions created during expansion shall be compiled /* Functions created during expansion shall be compiled
directly. */ directly. */
node->process = 0; node->process = 0;
cgraph_call_function_insertion_hooks (node);
cgraph_expand_function (node); cgraph_expand_function (node);
break; break;
...@@ -271,7 +274,6 @@ cgraph_process_new_functions (void) ...@@ -271,7 +274,6 @@ cgraph_process_new_functions (void)
gcc_unreachable (); gcc_unreachable ();
break; break;
} }
cgraph_call_function_insertion_hooks (node);
varpool_analyze_pending_decls (); varpool_analyze_pending_decls ();
} }
return output; return output;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment