aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-05-16 11:00:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-05-16 11:00:59 +0000
commit51f01fc387a2fb580108ccb27f945ee4bd1cfd34 (patch)
tree83ab9864820319174d5162fb8bd498c0bf3a9691 /gcc/dwarf2out.c
parent3a06a61019df358499293e98cea6997300005b73 (diff)
downloadgcc-51f01fc387a2fb580108ccb27f945ee4bd1cfd34.zip
gcc-51f01fc387a2fb580108ccb27f945ee4bd1cfd34.tar.gz
gcc-51f01fc387a2fb580108ccb27f945ee4bd1cfd34.tar.bz2
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 <rguenther@suse.de> * dwarf2out.c (loc_list_from_tree_1): Do not create DW_OP_GNU_variable_value for DECL_IGNORED_P decls. From-SVN: r248094
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 87530ee..5ff45eb 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