From f5916470c42633933457dbebbbed519cd73ed5b0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 18 Sep 2015 08:42:34 +0000 Subject: [PATCH] dwarf2out.c (add_location_or_const_value_attribute): Do nothing in early-dwarf. 2015-09-18 Richard Biener * dwarf2out.c (add_location_or_const_value_attribute): Do nothing in early-dwarf. From-SVN: r227899 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ee1a2d589c..5b7ffa6e86c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-18 Richard Biener + + * dwarf2out.c (add_location_or_const_value_attribute): Do nothing + in early-dwarf. + 2015-09-18 Richard Biener PR tree-optimization/66142 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; -- 2.30.2