This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR81993
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 28 Aug 2017 13:50:41 +0200 (CEST)
- Subject: [PATCH] Fix PR81993
- Authentication-results: sourceware.org; auth=none
I am testing the following to cure -gsplit-dwarf with early type
pruning.
It looks like we have zero testsuite coverage for -gsplit-dwarf
(or my grep skills are broken).
No testcase, g++.dg/[dwarf2/] isn't set up to do link tests.
Bootstrap and regtest running on x86_64-unknown-linux-gnu.
Richard.
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.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 251374)
+++ gcc/dwarf2out.c (working copy)
@@ -26037,7 +26037,8 @@ gen_remaining_tmpl_value_param_die_attri
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