From 5fc6ae7dab2809a4607de11b2c4e48752176a562 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 20 Aug 2015 11:02:30 +0000 Subject: [PATCH] toplev.c (compile_file): Remove loop calling late_global_decl on all symbols. 2015-08-20 Richard Biener * toplev.c (compile_file): Remove loop calling late_global_decl on all symbols. * varpool.c (varpool_node::assemble_decl): Call late_global_decl on decls we assembled. From-SVN: r227031 --- gcc/ChangeLog | 7 +++++++ gcc/toplev.c | 9 --------- gcc/varpool.c | 6 ++++++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a42d61e484a..b327385dc3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-08-20 Richard Biener + + * toplev.c (compile_file): Remove loop calling late_global_decl + on all symbols. + * varpool.c (varpool_node::assemble_decl): Call late_global_decl + on decls we assembled. + 2015-08-20 James Greenhalgh * common/config/aarch64/aarch64-common.c diff --git a/gcc/toplev.c b/gcc/toplev.c index d6efd0e7d17..0d9ec153849 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -580,15 +580,6 @@ compile_file (void) if (seen_error ()) return; - /* After the parser has generated debugging information, augment - this information with any new location/etc information that may - have become available after the compilation proper. */ - timevar_start (TV_PHASE_DBGINFO); - symtab_node *node; - FOR_EACH_DEFINED_SYMBOL (node) - debug_hooks->late_global_decl (node->decl); - timevar_stop (TV_PHASE_DBGINFO); - timevar_start (TV_PHASE_LATE_ASM); /* Compilation unit is finalized. When producing non-fat LTO object, we are diff --git a/gcc/varpool.c b/gcc/varpool.c index 10fa93c9ef8..7d11e20e116 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -586,6 +586,12 @@ varpool_node::assemble_decl (void) gcc_assert (TREE_ASM_WRITTEN (decl)); gcc_assert (definition); assemble_aliases (); + /* After the parser has generated debugging information, augment + this information with any new location/etc information that may + have become available after the compilation proper. */ + timevar_start (TV_PHASE_DBGINFO); + debug_hooks->late_global_decl (decl); + timevar_stop (TV_PHASE_DBGINFO); return true; } -- 2.30.2