passes.c (rest_of_handle_flow2): Close / open the flow2 dump file around the call...
authorJ"orn Rennecke <joern.rennecke@st.com>
Fri, 21 Jan 2005 12:41:44 +0000 (12:41 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 21 Jan 2005 12:41:44 +0000 (12:41 +0000)
* passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
around the call to rest_of_handle_branch_target_load_optimize.

From-SVN: r94015

gcc/ChangeLog
gcc/passes.c

index 1ce38f5264a0bf42186653de9d12ede44fbad55c..e841f8cfc42870c707f1cc566d003711b0522b5c 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
+
+       * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
+       around the call to rest_of_handle_branch_target_load_optimize.
+
 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
index 10044a2924436ec8807f11738c50ef0d2d24e3c1..3d4c6792885411d9953724723aa63c25f2e7af91 100644 (file)
@@ -1306,7 +1306,11 @@ rest_of_handle_flow2 (void)
     split_all_insns (0);
 
   if (flag_branch_target_load_optimize)
-    rest_of_handle_branch_target_load_optimize ();
+    {
+      close_dump_file (DFI_flow2, print_rtl_with_bb, get_insns ());
+      rest_of_handle_branch_target_load_optimize ();
+      open_dump_file (DFI_flow2, current_function_decl);
+    }
 
   if (optimize)
     cleanup_cfg (CLEANUP_EXPENSIVE);