aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-txvu.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-27 02:36:28 +0000
committerDoug Evans <dje@google.com>1998-01-27 02:36:28 +0000
commit2f511a26ba7c022ac0cc4958598bac7e6885fe61 (patch)
tree83cdaace93f7c0681b4f2a9757405f1a801420c0 /gas/config/tc-txvu.c
parentd8365eee42670de07dfd117e0f0566f5ec3a5a02 (diff)
downloadgdb-2f511a26ba7c022ac0cc4958598bac7e6885fe61.zip
gdb-2f511a26ba7c022ac0cc4958598bac7e6885fe61.tar.gz
gdb-2f511a26ba7c022ac0cc4958598bac7e6885fe61.tar.bz2
allow [] in suffix operand
Diffstat (limited to 'gas/config/tc-txvu.c')
-rw-r--r--gas/config/tc-txvu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-txvu.c b/gas/config/tc-txvu.c
index e8c92f5..0c4e4f1 100644
--- a/gas/config/tc-txvu.c
+++ b/gas/config/tc-txvu.c
@@ -416,7 +416,9 @@ assemble_one_insn (cpu, opcode, operand_table, str, insn_buf)
/* Pick the suffix out and parse it. */
/* ??? Hmmm ... there may not be any need to nul-terminate the
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;
c = *t;
*t = '\0';