diff options
-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; |