Commit 39c4e298 by Richard Guenther Committed by Richard Biener

re PR lto/46605 (Segmentation fault in lto_cgraph_replace_node)

2010-11-23  Richard Guenther  <rguenther@suse.de>

	PR lto/46605
	* lto.c (read_cgraph_and_symbols): Bail out after errors.

From-SVN: r167074
parent 59a09598
2010-11-23 Richard Guenther <rguenther@suse.de>
PR lto/46605
* lto.c (read_cgraph_and_symbols): Bail out after errors.
2010-11-17 Joseph Myers <joseph@codesourcery.com>
* lto.c (lto_main): Take no arguments.
......
......@@ -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 ();
......
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