cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions before starting IPA passes.

* cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
	before starting IPA passes.

Co-Authored-By: Andrew Pinski <pinskia@gmail.com>

From-SVN: r120314
This commit is contained in:
Jan Hubicka 2007-01-01 21:11:09 +01:00 committed by Jan Hubicka
parent f1aea409a4
commit 03c72655ba
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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)