This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Do not add_location_or_const_value_attribute in early dwarf
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Sep 2015 10:42:03 +0200 (CEST)
- Subject: [PATCH] Do not add_location_or_const_value_attribute in early dwarf
- Authentication-results: sourceware.org; auth=none
Bootstrapped and tested on x86_64-unknown-linux-gnu, gdb testsuite without
regressions, applied.
Richard.
2015-09-18 Richard Biener <rguenther@suse.de>
* dwarf2out.c (add_location_or_const_value_attribute): Do nothing
in early-dwarf.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 227898)
+++ gcc/dwarf2out.c (working copy)
@@ -16145,6 +16145,9 @@ add_location_or_const_value_attribute (d
var_loc_list *loc_list;
cached_dw_loc_list *cache;
+ if (early_dwarf)
+ return false;
+
if (TREE_CODE (decl) == ERROR_MARK)
return false;