2015-09-18 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 08:42:34 +0000 (08:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 08:42:34 +0000 (08:42 +0000)
* dwarf2out.c (add_location_or_const_value_attribute): Do nothing
in early-dwarf.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227899 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 3ee1a2d..5b7ffa6 100644 (file)
@@ -1,5 +1,10 @@
 2015-09-18  Richard Biener  <rguenther@suse.de>
 
+       * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
+       in early-dwarf.
+
+2015-09-18  Richard Biener  <rguenther@suse.de>
+
        PR tree-optimization/66142
        * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
        treat MEM[&x] and x the same.
index 04d593b..ffed3d1 100644 (file)
@@ -16145,6 +16145,9 @@ add_location_or_const_value_attribute (dw_die_ref die, tree decl, bool cache_p,
   var_loc_list *loc_list;
   cached_dw_loc_list *cache;
 
+  if (early_dwarf)
+    return false;
+
   if (TREE_CODE (decl) == ERROR_MARK)
     return false;