diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-25 14:23:41 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-25 14:23:41 +0000 |
commit | c793fff70f8d206db79f914e3b562677ebf68cdf (patch) | |
tree | 527fe8a812c9538bb6ae73a2d5e59f9eda83137f /gcc/dwarf2out.c | |
parent | f986173dc3967f17fdeca95efaab654d2825edc7 (diff) | |
download | gcc-c793fff70f8d206db79f914e3b562677ebf68cdf.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152172 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |