diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-26 04:27:04 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-26 04:27:04 +0000 |
commit | f666c9642422650b9479b1d741e29f4b9b685927 (patch) | |
tree | f59cceb5b4e7e250db4a0a681c093ab8254683ae /gcc/toplev.c | |
parent | 174d231ca3ffe1dfc6874f5ad53d56f225f0c75f (diff) | |
download | gcc-f666c9642422650b9479b1d741e29f4b9b685927.tar.gz |
* toplev.c (finalize): Add no_backend parameter. Don't finish
passes when preprocessing only. Adjust...
(do_compile): ... caller.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 06a73bd3a55..1bfdbe22986 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -107,7 +107,7 @@ static void process_options (void); static void backend_init (void); static int lang_dependent_init (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 compile_file (void); @@ -2139,7 +2139,7 @@ dump_memory_report (bool final) /* Clean up: close opened files, etc. */ static void -finalize (void) +finalize (bool no_backend) { /* Close the dump files. */ if (flag_gen_aux_info) @@ -2166,10 +2166,14 @@ finalize (void) if (stack_usage_file) fclose (stack_usage_file); - statistics_fini (); - finish_optimization_passes (); + if (!no_backend) + { + statistics_fini (); + + finish_optimization_passes (); - ira_finish_once (); + ira_finish_once (); + } if (mem_report) dump_memory_report (true); @@ -2206,7 +2210,7 @@ do_compile (void) if (lang_dependent_init (main_input_filename)) compile_file (); - finalize (); + finalize (no_backend); } /* Stop timing and print the times. */ |