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:
parent
e97a46ce6c
commit
a9189cc05f
|
@ -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):
|
||||
|
|
27
gcc/toplev.c
27
gcc/toplev.c
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue