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>
* config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
......
......@@ -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;
......
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