Bootstrapped and tested on x86_64-unknown-linux-gnu, gdb testsuite without
regressions, applied.

Richard.

2015-09-18  Richard Biener  <rguent...@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;
 

Reply via email to