From: Richard Biener Date: Tue, 16 May 2017 11:00:59 +0000 (+0000) Subject: dwarf2out.c (loc_list_from_tree_1): Do not create DW_OP_GNU_variable_value for DECL_I... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51f01fc387a2fb580108ccb27f945ee4bd1cfd34;p=gcc.git dwarf2out.c (loc_list_from_tree_1): Do not create DW_OP_GNU_variable_value for DECL_IGNORED_P decls. 2017-05-16 Richard Biener * dwarf2out.c (loc_list_from_tree_1): Do not create DW_OP_GNU_variable_value for DECL_IGNORED_P decls. From-SVN: r248094 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a974a8d2ad1..7063760cf59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-16 Richard Biener + + * dwarf2out.c (loc_list_from_tree_1): Do not create + DW_OP_GNU_variable_value for DECL_IGNORED_P decls. + 2017-05-16 Richard Biener * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 87530eec714..5ff45eb4efd 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -17373,6 +17373,7 @@ loc_list_from_tree_1 (tree loc, int want_address, && early_dwarf && current_function_decl && want_address != 1 + && ! DECL_IGNORED_P (loc) && (INTEGRAL_TYPE_P (TREE_TYPE (loc)) || POINTER_TYPE_P (TREE_TYPE (loc))) && DECL_CONTEXT (loc) == current_function_decl