Merge remote-tracking branch 'origin/aldyh/debug-early' into debug-early
authorAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 4 Sep 2014 18:08:42 +0000 (18:08 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 4 Sep 2014 18:08:42 +0000 (18:08 +0000)
Conflicts:
gcc/ChangeLog.debug-early
gcc/dwarf2out.c

From-SVN: r214915

gcc/tree.c

index d1d67efa62942cb9662ebb48127e7c83cccc0c77..7fae10efc454a97661d9b3bbb241182403d4d6d4 100644 (file)
@@ -5032,6 +5032,10 @@ free_lang_data_in_decl (tree decl)
 {
   gcc_assert (DECL_P (decl));
 
+  /* Early dumping of DECLs before we lose language data.  */
+  if (debug_info_level > DINFO_LEVEL_NONE)
+    dwarf2out_early_decl (decl);
+
   /* Give the FE a chance to remove its own data first.  */
   lang_hooks.free_lang_data (decl);