+2015-08-28 Richard Biener <rguenther@suse.de>
+
+ * cgraphunit.c (symbol_table::compile): Move early debug generation
+ and finish...
+ (symbol_table::finalize_compilation_unit): ... back here and
+ add a !seen_error () guard.
+
2015-08-27 Sebastian Pop <s.pop@samsung.com>
* toplev.c (process_options): Do not use flag_loop_block,
symtab_node::verify_symtab_nodes ();
#endif
- /* Emit early debug for reachable functions, and by consequence,
- locally scoped symbols. */
- struct cgraph_node *cnode;
- FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (cnode)
- (*debug_hooks->early_global_decl) (cnode->decl);
-
- /* Clean up anything that needs cleaning up after initial debug
- generation. */
- (*debug_hooks->early_finish) ();
-
timevar_push (TV_CGRAPHOPT);
if (pre_ipa_mem_report)
{
/* Gimplify and lower thunks. */
analyze_functions (/*first_time=*/false);
+ if (!seen_error ())
+ {
+ /* Emit early debug for reachable functions, and by consequence,
+ locally scoped symbols. */
+ struct cgraph_node *cnode;
+ FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (cnode)
+ (*debug_hooks->early_global_decl) (cnode->decl);
+
+ /* Clean up anything that needs cleaning up after initial debug
+ generation. */
+ (*debug_hooks->early_finish) ();
+ }
+
/* Finally drive the pass manager. */
compile ();