mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
allow [] in suffix operand
This commit is contained in:
@ -416,7 +416,9 @@ assemble_one_insn (cpu, opcode, operand_table, str, insn_buf)
|
|||||||
/* Pick the suffix out and parse it. */
|
/* Pick the suffix out and parse it. */
|
||||||
/* ??? Hmmm ... there may not be any need to nul-terminate the
|
/* ??? Hmmm ... there may not be any need to nul-terminate the
|
||||||
string, and it may in fact complicate things. */
|
string, and it may in fact complicate things. */
|
||||||
for (t = *s == '.' ? s + 1 : s; *t && isalpha (*t); ++t)
|
for (t = *s == '.' ? s + 1 : s;
|
||||||
|
*t && (isalnum (*t) || *t == '[' || *t == ']');
|
||||||
|
++t)
|
||||||
continue;
|
continue;
|
||||||
c = *t;
|
c = *t;
|
||||||
*t = '\0';
|
*t = '\0';
|
||||||
|
Reference in New Issue
Block a user