Commit 9f39bd53 by Jakub Jelinek Committed by Jakub Jelinek

dwarf2out.c (add_data_member_location_attribute): Use add_AT_unsigned instead of…

dwarf2out.c (add_data_member_location_attribute): Use add_AT_unsigned instead of add_AT_int if offset is non-negative.

	* dwarf2out.c (add_data_member_location_attribute): Use
	add_AT_unsigned instead of add_AT_int if offset is non-negative.

From-SVN: r162576
parent f551f80c
2010-07-27 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (add_data_member_location_attribute): Use
add_AT_unsigned instead of add_AT_int if offset is non-negative.
2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
* postreload.c (try_replace_in_use): New static function.
......
......@@ -15915,7 +15915,10 @@ add_data_member_location_attribute (dw_die_ref die, tree decl)
if (dwarf_version > 2)
{
/* Don't need to output a location expression, just the constant. */
add_AT_int (die, DW_AT_data_member_location, offset);
if (offset < 0)
add_AT_int (die, DW_AT_data_member_location, offset);
else
add_AT_unsigned (die, DW_AT_data_member_location, offset);
return;
}
else
......
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