diff options
author | Geoffrey Keating <geoffk@gcc.gnu.org> | 2006-11-01 05:16:14 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2006-11-01 05:16:14 +0000 |
commit | e430546039493165bb72d050645f70e87a2f7ffd (patch) | |
tree | 699c87f45ac8d8f3301362648096b1084d3f9031 /gcc/toplev.c | |
parent | 167fa32c09eb5d93d23c74365a4ce818762de826 (diff) | |
download | gcc-e430546039493165bb72d050645f70e87a2f7ffd.zip gcc-e430546039493165bb72d050645f70e87a2f7ffd.tar.gz gcc-e430546039493165bb72d050645f70e87a2f7ffd.tar.bz2 |
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.
From-SVN: r118362
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 53fcdfe..0f24ce3 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 (); |