Message ID | 20100727092137.GV18378@tyan-ft48-01.lab.bos.redhat.com |
---|---|
State | New |
Headers | show |
OK. Jsaon
--- gcc/dwarf2out.c.jj 2010-07-26 11:40:20.000000000 +0200 +++ gcc/dwarf2out.c 2010-07-27 11:08:38.000000000 +0200 @@ -15911,7 +15911,10 @@ add_data_member_location_attribute (dw_d 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