aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-12-05 16:54:59 +0000
committerNick Clifton <nickc@redhat.com>2016-12-05 16:54:59 +0000
commit14c1428b29fff12d8119ce6f4703be0de08197af (patch)
tree4bc8d41cda22f8be57a3c2ed003ceab8bc2322ea /gas/expr.c
parentfa6631b4eecfcca00c13b9594e6336dffd40982f (diff)
downloadgdb-14c1428b29fff12d8119ce6f4703be0de08197af.zip
gdb-14c1428b29fff12d8119ce6f4703be0de08197af.tar.gz
gdb-14c1428b29fff12d8119ce6f4703be0de08197af.tar.bz2
Fix ICE in assembler when passed a bogus input file.
PR gas/20904 * as.h (SKIP_ALL_WHITESPACE): New macro. * expr.c (operand): Use it.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index e8d553d..e1e49b2 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1371,7 +1371,7 @@ operand (expressionS *expressionP, enum expr_mode mode)
/* It is more 'efficient' to clean up the expressionS when they are
created. Doing it here saves lines of code. */
clean_up_expression (expressionP);
- SKIP_WHITESPACE (); /* -> 1st char after operand. */
+ SKIP_ALL_WHITESPACE (); /* -> 1st char after operand. */
know (*input_line_pointer != ' ');
/* The PA port needs this information. */