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] Do not add_location_or_const_value_attribute in early dwarf


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;
 


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