forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user