+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
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
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)
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 ();