summaryrefslogtreecommitdiff
path: root/opcodes/cgen-asm.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2001-06-29 00:09:16 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2001-06-29 00:09:16 +0000
commit5e91c3b4311049f4ef00ded805872c282810c5c4 (patch)
tree729326c7910c8526d49fc323783f5b4314cd05a7 /opcodes/cgen-asm.c
parent461b96748f7bf61694e6feafd56d098546ac84a9 (diff)
downloadbinutils-gdb-5e91c3b4311049f4ef00ded805872c282810c5c4.tar.gz
* cgen-asm.c (cgen_parse_keyword): Allow any first character.
* cgen-opc.c (cgen_keyword_add): Ignore special first character when building nonalpha_chars field.
Diffstat (limited to 'opcodes/cgen-asm.c')
-rw-r--r--opcodes/cgen-asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c
index 315b802f71d..7bb29ca9867 100644
--- a/opcodes/cgen-asm.c
+++ b/opcodes/cgen-asm.c
@@ -212,6 +212,12 @@ cgen_parse_keyword (cd, strp, keyword_table, valuep)
p = start = *strp;
+ /* Allow any first character. This is to make life easier for
+ the fairly common case of suffixes, eg. 'ld.b.w', where the first
+ character of the suffix ('.') is special. */
+ if (*p)
+ ++p;
+
/* Allow letters, digits, and any special characters. */
while (((p - start) < (int) sizeof (buf))
&& *p