Commit 94c08201 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 057de1d2
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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment