aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-04-27 18:03:03 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-04-27 16:03:03 +0000
commit4d5dcfb2f00a228ae69a2d7e84077374c3eb2c37 (patch)
tree9e5605cc38b169a6d8c45db5db485f246f7bd1d0 /gcc
parentc224bdc1ee1b93c4a75b9927d9c961fb4a65131a (diff)
downloadgcc-4d5dcfb2f00a228ae69a2d7e84077374c3eb2c37.zip
gcc-4d5dcfb2f00a228ae69a2d7e84077374c3eb2c37.tar.gz
gcc-4d5dcfb2f00a228ae69a2d7e84077374c3eb2c37.tar.bz2
* cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
From-SVN: r173039
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraphunit.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2e0546..46acb85 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 1d40d5a..aa2f2a1 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;