re PR rtl-optimization/42775 (GCC fails to rebuild itself with STAGE1_CFLAGS=-O1)

PR rtl-optimization/42775
	* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
	scheduling is enabled.

From-SVN: r164461
This commit is contained in:
Eric Botcazou 2010-09-20 21:31:14 +00:00 committed by Eric Botcazou
parent 8d8fc970e8
commit a42e106985
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/42775
* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
scheduling is enabled.
2010-09-20 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline

View File

@ -435,7 +435,10 @@ rest_of_pass_free_cfg (void)
/* The resource.c machinery uses DF but the CFG isn't guaranteed to be
valid at that point so it would be too late to call df_analyze. */
if (optimize > 0 && flag_delayed_branch)
df_analyze ();
{
df_note_add_problem ();
df_analyze ();
}
#endif
free_bb_for_insn ();