re PR debug/81993 (-gsplit-dwarf removes some symbols, causing some undefined references)
authorRichard Biener <rguenther@suse.de>
Mon, 28 Aug 2017 13:13:23 +0000 (13:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Aug 2017 13:13:23 +0000 (13:13 +0000)
2017-08-28  Richard Biener  <rguenther@suse.de>

PR debug/81993
* dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
Do nothing for removed DIEs.

From-SVN: r251382

gcc/ChangeLog
gcc/dwarf2out.c

index 90063a608a0b9dcb86daa064d079811447083af9..8a35b28d834003fc527cacbaf9fa2a4d0bf09b02 100644 (file)
@@ -1,3 +1,9 @@
+2017-08-28  Richard Biener  <rguenther@suse.de>
+
+       PR debug/81993
+       * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
+       Do nothing for removed DIEs.
+
 2017-08-28  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/81977
index 9fc32fefc59dd84b55aec62d360fa7a5592866d2..574307e703b5eb789c7e495b5a827f01db86f9ee 100644 (file)
@@ -26037,7 +26037,8 @@ gen_remaining_tmpl_value_param_die_attribute (void)
       j = 0;
       FOR_EACH_VEC_ELT (*tmpl_value_parm_die_table, i, e)
        {
-         if (!tree_add_const_value_attribute (e->die, e->arg))
+         if (!e->die->removed
+             && !tree_add_const_value_attribute (e->die, e->arg))
            {
              dw_loc_descr_ref loc = NULL;
              if (! early_dwarf