diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-07-27 17:47:43 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-07-27 17:47:43 +0200 |
commit | 9f39bd531612c767cbcf0148b3baa95a9122453e (patch) | |
tree | 242cd1e5f05b430ce2cac2a694a8e83e39198134 | |
parent | f551f80cd19ae94af5ed73c2ccb05a18731acc85 (diff) | |
download | gcc-9f39bd531612c767cbcf0148b3baa95a9122453e.zip gcc-9f39bd531612c767cbcf0148b3baa95a9122453e.tar.gz gcc-9f39bd531612c767cbcf0148b3baa95a9122453e.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ca65bb..9399d1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1ca53bb..d6751ac 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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 |