diff options
author | Doug Evans <dje@sebabeach.org> | 2002-12-20 04:54:30 +0000 |
---|---|---|
committer | Doug Evans <dje@sebabeach.org> | 2002-12-20 04:54:30 +0000 |
commit | 96d56832189c0706d905906c104b7ba5e390f53d (patch) | |
tree | 56afe5b6fe76f371afb1e801d654a53e1ebfe4d0 /opcodes | |
parent | 30d44b2f77a2a3021a5cd04f43d37981899e4da5 (diff) | |
download | binutils-redhat-96d56832189c0706d905906c104b7ba5e390f53d.tar.gz |
* cgen-asm.c (cgen_parse_keyword): Added underscore to symbol character
check to fix false keyword trigger with names such as <keyword>_foo.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/cgen-asm.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 66221d8ed2..f950874934 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2002-12-19 Nick Kelsey <nickk@ubicom.com> + + * cgen-asm.c (cgen_parse_keyword): Added underscore to symbol character + check to fix false keyword trigger with names such as <keyword>_foo. + 2002-12-19 Doug Evans <dje@sebabeach.org> * Makefile.am (CGEN_CPUS): New variable. diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c index 05b62bf49e..c71c70de08 100644 --- a/opcodes/cgen-asm.c +++ b/opcodes/cgen-asm.c @@ -225,7 +225,9 @@ cgen_parse_keyword (cd, strp, keyword_table, valuep) /* Allow letters, digits, and any special characters. */ while (((p - start) < (int) sizeof (buf)) && *p - && (ISALNUM (*p) || strchr (keyword_table->nonalpha_chars, *p))) + && (ISALNUM (*p) + || *p == '_' + || strchr (keyword_table->nonalpha_chars, *p))) ++p; if (p - start >= (int) sizeof (buf)) |