===================================================================
@@ -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
===================================================================
@@ -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;
}