diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-09-15 18:51:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-09-15 18:51:53 +0000 |
commit | fa289fb8df4ae53e4141a9de1dcb29de6f9fb85b (patch) | |
tree | 6244c8359087726f6b621ce646573143b6c5af33 | |
parent | 0cc7d26fe4e30614f7ca3d3abd607d938b56dbf0 (diff) | |
download | gdb-fa289fb8df4ae53e4141a9de1dcb29de6f9fb85b.zip gdb-fa289fb8df4ae53e4141a9de1dcb29de6f9fb85b.tar.gz gdb-fa289fb8df4ae53e4141a9de1dcb29de6f9fb85b.tar.bz2 |
2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (offset_in_range): Sign extend offset only
if BFD64 is defined.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 83f867c..0c5ba2a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2009-09-15 H.J. Lu <hongjiu.lu@intel.com> + * config/tc-i386.c (offset_in_range): Sign extend offset only + if BFD64 is defined. + +2009-09-15 H.J. Lu <hongjiu.lu@intel.com> + * config/tc-i386-intel.c (i386_intel_operand): Initialize intel_state.has_offset to 0. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e5ff75f..0e561e3 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1766,9 +1766,9 @@ offset_in_range (offsetT val, int size) /* If BFD64, sign extend val for 32bit address mode. */ if (flag_code != CODE_64BIT || i.prefix[ADDR_PREFIX]) -#endif if ((val & ~(((addressT) 2 << 31) - 1)) == 0) val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31); +#endif if ((val & ~mask) != 0 && (val & ~mask) != ~mask) { |