OSDN Git Service

PR rtl-optimization/42775
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Sep 2010 21:29:48 +0000 (21:29 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Sep 2010 21:29:48 +0000 (21:29 +0000)
* cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
scheduling is enabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164458 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgrtl.c

index cad3a43..3b8d418 100644 (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  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/45728
index 3138281..f7ce558 100644 (file)
@@ -421,7 +421,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 ();