aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e69de29..e4bf33d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -0,0 +1,5 @@
+2007-01-01 Jan Hubicka <jh@suse.cz>
+ Andrew Pinski <pinskia@gmail.com>
+
+ * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
+ before starting IPA passes.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 0aa9f7d..d5b7e6d 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1445,6 +1445,7 @@ cgraph_optimize (void)
/* Frontend may output common variables after the unit has been finalized.
It is safe to deal with them here as they are always zero initialized. */
varpool_analyze_pending_decls ();
+ cgraph_process_new_functions ();
timevar_push (TV_CGRAPHOPT);
if (pre_ipa_mem_report)