Commit 5715dafb by Alexandre Oliva Committed by Alexandre Oliva

toplev.c (finalize): Add no_backend parameter.

* toplev.c (finalize): Add no_backend parameter.  Don't finish
passes when preprocessing only.  Adjust...
(do_compile): ... caller.

From-SVN: r167161
parent 9aff220f
2010-11-26 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (finalize): Add no_backend parameter. Don't finish
passes when preprocessing only. Adjust...
(do_compile): ... caller.
2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
...@@ -107,7 +107,7 @@ static void process_options (void); ...@@ -107,7 +107,7 @@ static void process_options (void);
static void backend_init (void); static void backend_init (void);
static int lang_dependent_init (const char *); static int lang_dependent_init (const char *);
static void init_asm_output (const char *); static void init_asm_output (const char *);
static void finalize (void); static void finalize (bool);
static void crash_signal (int) ATTRIBUTE_NORETURN; static void crash_signal (int) ATTRIBUTE_NORETURN;
static void compile_file (void); static void compile_file (void);
...@@ -2139,7 +2139,7 @@ dump_memory_report (bool final) ...@@ -2139,7 +2139,7 @@ dump_memory_report (bool final)
/* Clean up: close opened files, etc. */ /* Clean up: close opened files, etc. */
static void static void
finalize (void) finalize (bool no_backend)
{ {
/* Close the dump files. */ /* Close the dump files. */
if (flag_gen_aux_info) if (flag_gen_aux_info)
...@@ -2166,10 +2166,14 @@ finalize (void) ...@@ -2166,10 +2166,14 @@ finalize (void)
if (stack_usage_file) if (stack_usage_file)
fclose (stack_usage_file); fclose (stack_usage_file);
statistics_fini (); if (!no_backend)
finish_optimization_passes (); {
statistics_fini ();
finish_optimization_passes ();
ira_finish_once (); ira_finish_once ();
}
if (mem_report) if (mem_report)
dump_memory_report (true); dump_memory_report (true);
...@@ -2206,7 +2210,7 @@ do_compile (void) ...@@ -2206,7 +2210,7 @@ do_compile (void)
if (lang_dependent_init (main_input_filename)) if (lang_dependent_init (main_input_filename))
compile_file (); compile_file ();
finalize (); finalize (no_backend);
} }
/* Stop timing and print the times. */ /* Stop timing and print the times. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment