This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR81993


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]