diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-27 16:03:03 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-27 16:03:03 +0000 |
commit | 4f7a1122466432e54e310bebcd1b74648c06fe8c (patch) | |
tree | 9e5605cc38b169a6d8c45db5db485f246f7bd1d0 /gcc/cgraphunit.c | |
parent | 9ef934512b9d9cfff6fcc4ea5ccf699641f77914 (diff) | |
download | gcc-4f7a1122466432e54e310bebcd1b74648c06fe8c.tar.gz |
* 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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |