diff options
author | Richard Biener <rguenther@suse.de> | 2015-09-18 08:42:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-09-18 08:42:34 +0000 |
commit | f5916470c42633933457dbebbbed519cd73ed5b0 (patch) | |
tree | af1b42629bd2b2cd4f72bc947ac789da887d9b67 | |
parent | a0f79fcc43760c8b7f72eccc9686c6e5cb7995d9 (diff) | |
download | gcc-f5916470c42633933457dbebbbed519cd73ed5b0.zip gcc-f5916470c42633933457dbebbbed519cd73ed5b0.tar.gz gcc-f5916470c42633933457dbebbbed519cd73ed5b0.tar.bz2 |
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
-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 3ee1a2d..5b7ffa6 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 04d593b..ffed3d1 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; |