dwarf2out.c (add_location_or_const_value_attribute): Do nothing in early-dwarf.
authorRichard Biener <rguenther@suse.de>
Fri, 18 Sep 2015 08:42:34 +0000 (08:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 18 Sep 2015 08:42:34 +0000 (08:42 +0000)
2015-09-18  Richard Biener  <rguenther@suse.de>

* dwarf2out.c (add_location_or_const_value_attribute): Do nothing
in early-dwarf.

From-SVN: r227899

gcc/ChangeLog
gcc/dwarf2out.c

index 3ee1a2d589c2cdb8966c6d46d51dfdc9bd22323f..5b7ffa6e86c3628a9a8a40b978f6340dd3d8c8fd 100644 (file)
@@ -1,3 +1,8 @@
+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
index 04d593b16a2fb9ff38b22253a9b55b499029012c..ffed3d13f2a97abb7f6980d69e6b434a7c1a2dc2 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;