toplev.c (do_compile): Don't try to open dump files before lang_dependent_init initializes dump_base_name.

2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
	* toplev.c (do_compile): Don't try to open dump files before
	lang_dependent_init initializes dump_base_name.

From-SVN: r69195
This commit is contained in:
Steven Bosscher 2003-07-10 19:15:10 +00:00
parent e97a46ce6c
commit a9189cc05f
2 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* toplev.c (do_compile): Don't try to open dump files before
lang_dependent_init initializes dump_base_name.
2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):

View File

@ -4883,21 +4883,24 @@ do_compile (void)
if (!no_backend)
backend_init ();
if (flag_unit_at_a_time)
{
open_dump_file (DFI_cgraph, NULL);
cgraph_dump_file = rtl_dump_file;
rtl_dump_file = NULL;
}
/* Language-dependent initialization. Returns true on success. */
if (lang_dependent_init (main_input_filename))
compile_file ();
if (flag_unit_at_a_time)
{
rtl_dump_file = cgraph_dump_file;
cgraph_dump_file = NULL;
close_dump_file (DFI_cgraph, NULL, NULL_RTX);
if (flag_unit_at_a_time)
{
open_dump_file (DFI_cgraph, NULL);
cgraph_dump_file = rtl_dump_file;
rtl_dump_file = NULL;
}
compile_file ();
if (flag_unit_at_a_time)
{
rtl_dump_file = cgraph_dump_file;
cgraph_dump_file = NULL;
close_dump_file (DFI_cgraph, NULL, NULL_RTX);
}
}
finalize ();