diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-04-18 17:46:31 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-04-18 17:46:31 +0000 |
commit | 508866be8ac72620cbd38081a1fb5106092f9c59 (patch) | |
tree | 49338a66bd0e01a272b1025cd8b2e3a9b6d11c18 /gas | |
parent | ea58412531563145414cc6f028046d74f9037a58 (diff) | |
download | gdb-508866be8ac72620cbd38081a1fb5106092f9c59.zip gdb-508866be8ac72620cbd38081a1fb5106092f9c59.tar.gz gdb-508866be8ac72620cbd38081a1fb5106092f9c59.tar.bz2 |
2000-04-18 H.J. Lu (hjl@gnu.org)
* config/tc-i386.c (offset_in_range): Use addressT instead of
bfd_vma for none bfd assemblers.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b756396..9bc15bb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-04-18 H.J. Lu (hjl@gnu.org) + + * config/tc-i386.c (offset_in_range): Use addressT instead of + bfd_vma for none bfd assemblers. + 2000-04-17 Alan Modra <alan@linuxcare.com.au> * config/tc-i386.c (offset_in_range): Sign extend val so BFD64 diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 638bbd0..f7e3c34 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -465,19 +465,19 @@ offset_in_range (val, size) offsetT val; int size; { - bfd_vma mask; + addressT mask; switch (size) { - case 1: mask = ((bfd_vma) 1 << 8) - 1; break; - case 2: mask = ((bfd_vma) 1 << 16) - 1; break; - case 4: mask = ((bfd_vma) 1 << 32) - 1; break; + case 1: mask = ((addressT) 1 << 8) - 1; break; + case 2: mask = ((addressT) 1 << 16) - 1; break; + case 4: mask = ((addressT) 1 << 32) - 1; break; default: abort(); } /* If BFD64, sign extend val. */ - if ((val & ~ (((bfd_vma) 1 << 32) - 1)) == 0) - val = (val ^ ((bfd_vma) 1 << 31)) - ((bfd_vma) 1 << 31); + if ((val & ~ (((addressT) 1 << 32) - 1)) == 0) + val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31); if ((val & ~ mask) != 0 && (val & ~ mask) != ~ mask) { |