diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 05:16:14 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 05:16:14 +0000 |
commit | 15daca6efa02e2a814d2525b13ce6d014429b1a7 (patch) | |
tree | 699c87f45ac8d8f3301362648096b1084d3f9031 /gcc/toplev.c | |
parent | 427911176defd91fb2ac55f17bde1da551c2c02b (diff) | |
download | gcc-15daca6efa02e2a814d2525b13ce6d014429b1a7.tar.gz |
In gcc/:
* toplev.c (compile_file): Call final_write_globals
even if there have been errors.
In gcc/cp/:
* decl2.c (cp_write_global_declarations): Rename from
cp_finish_file.
* cp-lang.c (finish_file): Don't call cp_finish_file.
* cp-tree.h (cp_write_global_declarations): Rename from
cp_finish_file.
* cp-objcp-common.h (LANG_HOOKS_WRITE_GLOBALS): Define to
cp_write_global_declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 53fcdfe580c..0f24ce3ebe4 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1040,10 +1040,14 @@ compile_file (void) what's left of the symbol table output. */ timevar_pop (TV_PARSE); - if (flag_syntax_only || errorcount || sorrycount) + if (flag_syntax_only) return; lang_hooks.decls.final_write_globals (); + + if (errorcount || sorrycount) + return; + cgraph_varpool_assemble_pending_decls (); finish_aliases_2 (); |