diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-18 08:42:34 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-18 08:42:34 +0000 |
commit | 21b286f24447eaf6b95ae5f387efc066ad29eee2 (patch) | |
tree | af1b42629bd2b2cd4f72bc947ac789da887d9b67 | |
parent | 11beb29cdf62c021907f686e269adb45ba282396 (diff) | |
download | gcc-21b286f24447eaf6b95ae5f387efc066ad29eee2.tar.gz |
2015-09-18 Richard Biener <rguenther@suse.de>
* 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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ee1a2d589c..5b7ffa6e86c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 04d593b16a2..ffed3d13f2a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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; |