toplev.c (backend_init): Add missing call to inint_optimization_passes.
authorJan Hubicka <jh@suse.cz>
Mon, 29 Mar 2004 23:00:28 +0000 (01:00 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 29 Mar 2004 23:00:28 +0000 (23:00 +0000)
* toplev.c (backend_init): Add missing call to inint_optimization_passes.
* passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
dump file in non-unit-at-a-time mode.

From-SVN: r80066

gcc/ChangeLog
gcc/passes.c
gcc/toplev.c

index bd2c1e36bd677ecd45079c527183e2fc761121e0..8b60350ad17a107a8c048f9f82af21115e2ffc3c 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-30  Jan Hubicka  <jh@suse.cz>
+
+       * toplev.c (backend_init): Add missing call to inint_optimization_passes.
+       * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
+       dump file in non-unit-at-a-time mode.
+
 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cris/cris.h: Correct #ifdef to test for
index 5ee44d4a6545fbf723875df57e463e0e16e2b2a9..aa5cb86c7fb2de77920bbe01269e3a7cd9222695 100644 (file)
@@ -2124,12 +2124,9 @@ rest_of_compilation (tree decl)
 void
 init_optimization_passes (void)
 {
-  if (flag_unit_at_a_time)
-    {
-      open_dump_file (DFI_cgraph, NULL);
-      cgraph_dump_file = dump_file;
-      dump_file = NULL;
-    }
+  open_dump_file (DFI_cgraph, NULL);
+  cgraph_dump_file = dump_file;
+  dump_file = NULL;
 }
 
 void
@@ -2154,12 +2151,9 @@ finish_optimization_passes (void)
       timevar_pop (TV_DUMP);
     }
 
-  if (flag_unit_at_a_time)
-    {
-      dump_file = cgraph_dump_file;
-      cgraph_dump_file = NULL;
-      close_dump_file (DFI_cgraph, NULL, NULL_RTX);
-    }
+  dump_file = cgraph_dump_file;
+  cgraph_dump_file = NULL;
+  close_dump_file (DFI_cgraph, NULL, NULL_RTX);
 
   /* Do whatever is necessary to finish printing the graphs.  */
   if (graph_dump_format != no_graph)
index 13bd98e7f8b47ee9b3a5fb04180462ffb11c9f5f..88ad4c97519cf091b213394031fce45ea8c9f6a0 100644 (file)
@@ -2449,6 +2449,7 @@ backend_init (void)
      provide a dummy function context for them.  */
   init_dummy_function_start ();
   init_expmed ();
+  init_optimization_passes ();
   if (flag_caller_saves)
     init_caller_save ();
   expand_dummy_function_end ();