From 83183c0c36ec92d35ea6a096a2b3c5e2b1d02d6d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 6 May 1999 23:16:36 +0000 Subject: [PATCH] * config/tc-i386.c (i386_immediate): Skip whitespace before complaining about junk after expression. (i386_displacement): Likewise. --- gas/ChangeLog | 6 ++++++ gas/config/tc-i386.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index c5810e36181..7e2ecb9cd86 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Thu May 6 23:13:39 1999 Richard Henderson + + * config/tc-i386.c (i386_immediate): Skip whitespace before + complaining about junk after expression. + (i386_displacement): Likewise. + Thu May 6 19:50:14 1999 Richard Henderson * symbols.c (symbol_find_base): Use memcpy instead of strcpy. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 7149d711b93..dcbfc7e2f87 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); -- 2.30.2