aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-09-15 22:06:42 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-09-15 22:06:42 +0000
commit27ac72083be347b60c80b8b9daaf77d0243cde5f (patch)
tree5c2021f3482b054915e8681f5b93e69dc484dd91 /gas/config
parent7e27a47a1eca4baf396db956c1f1d2bde64fd5af (diff)
downloadgdb-27ac72083be347b60c80b8b9daaf77d0243cde5f.zip
gdb-27ac72083be347b60c80b8b9daaf77d0243cde5f.tar.gz
gdb-27ac72083be347b60c80b8b9daaf77d0243cde5f.tar.bz2
gas/
2007-09-15 H.J. Lu <hongjiu.lu@intel.com> PR gas/5034 * config/tc-i386.c (intel_e04): Return 1 if cur_token.code is T_NIL. gas/testsuite/ 2007-09-15 H.J. Lu <hongjiu.lu@intel.com> PR gas/5034 * gas/i386/x86-64-rip.s: Add Intel mode testcases. * gas/i386/x86-64-rip-intel.d: Updated. * gas/i386/x86-64-rip.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 5453a00..1a6d345 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -7913,6 +7913,9 @@ intel_e04 (void)
if (!intel_e05())
return 0;
+ if (cur_token.code == T_NIL)
+ return 1;
+
if (nregs >= 0 && NUM_ADDRESS_REGS > nregs)
i.base_reg = i386_regtab + REGNAM_AL; /* al is invalid as base */