]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-08-20 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 2015 11:02:30 +0000 (11:02 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 2015 11:02:30 +0000 (11:02 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227031 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c
gcc/varpool.c

index a42d61e484aff24749343bbb5c4bc337208ea7b9..b327385dc3f25e18d580c59b1a405dbe55e375d8 100644 (file)
@@ -1,3 +1,10 @@
+2015-08-20  Richard Biener  <rguenther@suse.de>
+
+       * 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  <james.greenhalgh@arm.com>
 
        * common/config/aarch64/aarch64-common.c
index d6efd0e7d17a6e700b3005b063b3bf36768d4f2d..0d9ec15384968641cd2c5c45423a6233e1634992 100644 (file)
@@ -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
index 10fa93c9ef844f8c78f87ac417eda396900cced7..7d11e20e1165621f8a5e85936b7855ce819ec93a 100644 (file)
@@ -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;
     }