[binutils-gdb] Internal error at gas/expr.c:1814
Alan Modra
amodra@sourceware.org
Wed Feb 8 23:14:56 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4fd74b5f05e63c5b4e705080c331da961fac7394
commit 4fd74b5f05e63c5b4e705080c331da961fac7394
Author: Alan Modra <amodra@gmail.com>
Date: Wed Feb 8 13:27:24 2023 +1030
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:
---
gas/expr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the Binutils-cvs
mailing list