aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-11-01 23:56:48 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-11-01 23:56:48 +0100
commitbe6218568d56e62aa3b53d962eaf41dd03b76701 (patch)
tree0783008837a8cb1ed4387b3c0789378f17409138 /gcc
parent04ec7059b5b24b46919de70803e57104ca091a09 (diff)
downloadgcc-be6218568d56e62aa3b53d962eaf41dd03b76701.zip
gcc-be6218568d56e62aa3b53d962eaf41dd03b76701.tar.gz
gcc-be6218568d56e62aa3b53d962eaf41dd03b76701.tar.bz2
dwarf2out.c (gen_variable_die): Remove again origin_die variable and its initialization.
* dwarf2out.c (gen_variable_die): Remove again origin_die variable and its initialization. From-SVN: r241759
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 677b143..730dcd3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-01 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2out.c (gen_variable_die): Remove again origin_die variable
+ and its initialization.
+
2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* dwarf2out.c (output_rnglists): Wrap basebuf, len in
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 5ff6f97..24b85c1 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -22451,7 +22451,6 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
tree ultimate_origin;
dw_die_ref var_die;
dw_die_ref old_die = decl ? lookup_decl_die (decl) : NULL;
- dw_die_ref origin_die = NULL;
bool declaration = (DECL_EXTERNAL (decl_or_origin)
|| class_or_namespace_scope_p (context_die));
bool specialization_p = false;
@@ -22627,7 +22626,7 @@ gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
var_die = new_die (DW_TAG_variable, context_die, decl);
if (origin != NULL)
- origin_die = add_abstract_origin_attribute (var_die, origin);
+ add_abstract_origin_attribute (var_die, origin);
/* Loop unrolling can create multiple blocks that refer to the same
static variable, so we must test for the DW_AT_declaration flag.