toplev.c (rest_of_compilation): Allow dbr_schedule to write to the dump file too.
authorJeffrey A Law <law@cygnus.com>
Wed, 31 Mar 1999 16:26:36 +0000 (16:26 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 31 Mar 1999 16:26:36 +0000 (09:26 -0700)
        * toplev.c (rest_of_compilation): Allow dbr_schedule to write to
        the dump file too.

From-SVN: r26091

gcc/ChangeLog
gcc/toplev.c

index 29ad268..58b324a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Mar 31 17:20:11 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * toplev.c (rest_of_compilation): Allow dbr_schedule to write to
+       the dump file too.
+
 Wed Mar 31 12:32:43 1999  Richard Henderson  <rth@cygnus.com>
 
        * flow.c (find_basic_blocks): New argument `do_cleanup'.
index cf2e8f0..c5675c1 100644 (file)
@@ -4238,11 +4238,14 @@ rest_of_compilation (decl)
 #ifdef DELAY_SLOTS
   if (optimize > 0 && flag_delayed_branch)
     {
+      if (dbr_sched_dump)
+       open_dump_file (".dbr", decl_printable_name (decl, 2));
+
       TIMEVAR (dbr_sched_time, dbr_schedule (insns, rtl_dump_file));
 
       if (dbr_sched_dump)
        {
-         dump_rtl (".dbr", decl, print_rtl_with_bb, insns);
+         close_dump_file (print_rtl_with_bb, insns);
          if (graph_dump_format != no_graph)
            print_rtl_graph_with_bb (dump_base_name, ".dbr", insns);
        }