diff options
author | Doug Evans <dje@google.com> | 1998-01-28 17:31:22 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-01-28 17:31:22 +0000 |
commit | aa788b629fd46dfe12972619914feb1848364174 (patch) | |
tree | 0adf85a4380d5444dbfd747541af2eecf24cfb42 /gas | |
parent | 3a6b89101ed389f7ea2f5514f1e41569d6184b41 (diff) | |
download | fsf-binutils-gdb-aa788b629fd46dfe12972619914feb1848364174.zip fsf-binutils-gdb-aa788b629fd46dfe12972619914feb1848364174.tar.gz fsf-binutils-gdb-aa788b629fd46dfe12972619914feb1848364174.tar.bz2 |
(assemble_one_insn): tweak lexing of suffix
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-dvp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 06b516c..075d91c 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -495,8 +495,8 @@ assemble_one_insn (cpu, opcode, operand_table, pstr, 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 == '/') ? s + 1 : s; - *t && (isalnum (*t) || *t == '[' || *t == ']'); + for (t = (*s == '.' || *s == '/' || *s == '[') ? s + 1 : s; + *t && (isalnum (*t) || *t == ']'); ++t) continue; c = *t; @@ -520,6 +520,9 @@ assemble_one_insn (cpu, opcode, operand_table, pstr, insn_buf) else *insn_buf |= suf_value << operand->shift; + /* FIXME: For suffixes that have a null "" value, + this next line is wrong as we will skip over something + we're not supposed to. */ str = t; ++syn; } |