From 950904f8b72516e48a3edbec13c6d3fdcff82312 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 28 Aug 2017 13:13:23 +0000 Subject: [PATCH] re PR debug/81993 (-gsplit-dwarf removes some symbols, causing some undefined references) 2017-08-28 Richard Biener PR debug/81993 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes): Do nothing for removed DIEs. From-SVN: r251382 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90063a608a0..8a35b28d834 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-08-28 Richard Biener + + PR debug/81993 + * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes): + Do nothing for removed DIEs. + 2017-08-28 Richard Biener PR tree-optimization/81977 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 9fc32fefc59..574307e703b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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 -- 2.30.2