From 1b2584797b2ebf0673f531dc211bd304dc39d05f Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Tue, 24 May 2011 18:47:14 +0000 Subject: [PATCH] backport: re PR rtl-optimization/42775 (GCC fails to rebuild itself with STAGE1_CFLAGS=-O1) Backport from mainline: 2010-09-20 Eric Botcazou PR rtl-optimization/42775 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot scheduling is enabled. From-SVN: r174133 --- gcc/ChangeLog | 7 +++++++ gcc/cfgrtl.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea6fc584f918..0b9d0a08023c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2011-05-24 John David Anglin + Backport from mainline: + 2010-09-20 Eric Botcazou + + PR rtl-optimization/42775 + * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot + scheduling is enabled. + PR rtl-optimization/49007 Backport from mainline: 2009-11-30 Hans-Peter Nilsson diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index b46d72d8dd79..ad2f8ebb0cd2 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -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 (); -- 2.47.2