diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-23 12:52:16 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-23 12:52:16 +0000 |
commit | 4f3aea0db0fda1f2c98aaf779e1c26eea368c2c0 (patch) | |
tree | b9d7bc5161beb3a12c7787da4d041c4e1d2bcb42 /gcc/lto/lto.c | |
parent | e71ec76db59f8a20d013503e7192680f92872796 (diff) | |
download | gcc-4f3aea0db0fda1f2c98aaf779e1c26eea368c2c0.tar.gz |
2010-11-23 Richard Guenther <rguenther@suse.de>
PR lto/46605
* lto.c (read_cgraph_and_symbols): Bail out after errors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 44f866ad075..5da41b02294 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -2195,6 +2195,11 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames) /* Merge global decls. */ lto_symtab_merge_decls (); + /* If there were errors during symbol merging bail out, we have no + good way to recover here. */ + if (seen_error ()) + fatal_error ("errors during merging of translation units\n"); + /* Fixup all decls and types and free the type hash tables. */ lto_fixup_decls (all_file_decl_data); free_gimple_type_tables (); |