diff options
author | Geoffrey Keating <geoffk@geoffk.org> | 2001-06-29 00:09:16 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@geoffk.org> | 2001-06-29 00:09:16 +0000 |
commit | 71c4ffc6f34bdc06bbc7c210538cb729cb33465c (patch) | |
tree | 975ced5d84cba32f437f4a82c60fd75c8adb1430 /opcodes/cgen-asm.c | |
parent | 3768d66b2390fe4494739f835a6906d4273f0d0d (diff) | |
download | binutils-redhat-71c4ffc6f34bdc06bbc7c210538cb729cb33465c.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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c index 315b802f71..7bb29ca986 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 |