summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-09-25 16:23:41 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-09-25 16:23:41 +0200
commit94c08201b1d53d9aabf0a8ca044a58ee32e58029 (patch)
tree527fe8a812c9538bb6ae73a2d5e59f9eda83137f
parent057de1d28a5f19a95528a979b47aa039b19eda66 (diff)
downloadgcc-94c08201b1d53d9aabf0a8ca044a58ee32e58029.tar.gz
dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2 to loc_descriptor_from_tree.
* dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2 to loc_descriptor_from_tree. (add_location_or_const_value_attribute): Pass 0 instead of 2 for decl_by_reference_p decls. From-SVN: r152172
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 331faa147e2..0520ab3d582 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-25 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
+ to loc_descriptor_from_tree.
+ (add_location_or_const_value_attribute): Pass 0 instead of 2
+ for decl_by_reference_p decls.
+
2009-09-25 Richard Guenther <rguenther@suse.de>
PR middle-end/41463
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 213b9afaaaf..2338e29cd55 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11061,7 +11061,7 @@ tls_mem_loc_descriptor (rtx mem)
|| !DECL_THREAD_LOCAL_P (base))
return NULL;
- loc_result = loc_descriptor_from_tree (MEM_EXPR (mem), 2);
+ loc_result = loc_descriptor_from_tree (MEM_EXPR (mem), 1);
if (loc_result == NULL)
return NULL;
@@ -13912,7 +13912,7 @@ add_location_or_const_value_attribute (dw_die_ref die, tree decl,
&& add_const_value_attribute (die, rtl))
return true;
}
- list = loc_list_from_tree (decl, 2);
+ list = loc_list_from_tree (decl, decl_by_reference_p (decl) ? 0 : 2);
if (list)
{
add_AT_location_description (die, attr, list);