From: Alan Modra Date: Wed, 8 Feb 2023 02:57:24 +0000 (+1030) Subject: Internal error at gas/expr.c:1814 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fd74b5f05e63c5b4e705080c331da961fac7394;p=binutils-gdb.git Internal error at gas/expr.c:1814 This is the assertion know (*input_line_pointer != ' '); after calling operand. The usual exit from operand calls SKIP_ALL_WHITESPACE. * expr.c (operand): Call SKIP_ALL_WHITESPACE after call to expr. --- diff --git a/gas/expr.c b/gas/expr.c index 794be6f09d8..189236bec6d 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -996,7 +996,7 @@ operand (expressionS *expressionP, enum expr_mode mode) } else input_line_pointer++; - SKIP_WHITESPACE (); + SKIP_ALL_WHITESPACE (); /* Here with input_line_pointer -> char after "(...)". */ return segment;