aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-08-27 13:27:02 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-08-27 13:27:02 +0000
commitf11cd82983ce681fd1f6bd232abcc91297d4e855 (patch)
tree6c8e4c2a30c588f67e6c553245819e9a7c0d4173 /gcc/cgraphunit.c
parenta98e4e62c1c0c8570c7db321e3c8a2a7c2336c60 (diff)
downloadgcc-f11cd82983ce681fd1f6bd232abcc91297d4e855.zip
gcc-f11cd82983ce681fd1f6bd232abcc91297d4e855.tar.gz
gcc-f11cd82983ce681fd1f6bd232abcc91297d4e855.tar.bz2
passes.c (rest_of_decl_compilation): Guard early_global_decl call with !seen_error ().
2015-08-27 Richard Biener <rguenther@suse.de> * passes.c (rest_of_decl_compilation): Guard early_global_decl call with !seen_error (). * cgraphunit.c (symbol_table::finalize_compilation_unit): Move early debug generation and finish... (symbol_table::compile): ... here to put it after a !seen_error () guard. From-SVN: r227258
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index a95ce9e..cdec63b 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2314,6 +2314,16 @@ symbol_table::compile (void)
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)
{
@@ -2482,16 +2492,6 @@ symbol_table::finalize_compilation_unit (void)
/* Gimplify and lower thunks. */
analyze_functions (/*first_time=*/false);
- /* 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 ();