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

2015-09-18  Richard Biener  <rguenther@suse.de>

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

From-SVN: r227899
This commit is contained in:
Richard Biener 2015-09-18 08:42:34 +00:00 committed by Richard Biener
parent a0f79fcc43
commit f5916470c4
2 changed files with 8 additions and 0 deletions

View 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

View 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;