aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-05-06 23:16:36 +0000
committerRichard Henderson <rth@redhat.com>1999-05-06 23:16:36 +0000
commit83183c0c36ec92d35ea6a096a2b3c5e2b1d02d6d (patch)
treec8bb2d80775c516d28f8d534c1acf5e2a89b448f /gas/config
parent33fbbfbc00e8c3a6cbdadfdd367126c5f76170ec (diff)
downloadgdb-83183c0c36ec92d35ea6a096a2b3c5e2b1d02d6d.zip
gdb-83183c0c36ec92d35ea6a096a2b3c5e2b1d02d6d.tar.gz
gdb-83183c0c36ec92d35ea6a096a2b3c5e2b1d02d6d.tar.bz2
* config/tc-i386.c (i386_immediate): Skip whitespace before
complaining about junk after expression. (i386_displacement): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 7149d71..dcbfc7e 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2602,6 +2602,7 @@ i386_immediate (imm_start)
exp_seg = expression (exp);
+ SKIP_WHITESPACE ();
if (*input_line_pointer)
as_bad (_("Ignoring junk `%s' after expression"), input_line_pointer);
@@ -2847,6 +2848,7 @@ i386_displacement (disp_start, disp_end)
}
#endif
+ SKIP_WHITESPACE ();
if (*input_line_pointer)
as_bad (_("Ignoring junk `%s' after expression"),
input_line_pointer);