[PATCH] Do not add_location_or_const_value_attribute in early dwarf
Richard Biener
rguenther@suse.de
Fri Sep 18 08:56:00 GMT 2015
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;
More information about the Gcc-patches
mailing list