aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-09-18 18:25:50 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-09-18 18:25:50 +0000
commit90a579fafdc1eaa80ce5f1e4fc223dc93d076d8a (patch)
tree94a475b04ed67b6bd95c02c346f3e6c2bb867f20 /gas
parent6d70d47fb743fe1b2a4206c76b12a82b8890a23c (diff)
downloadgdb-90a579fafdc1eaa80ce5f1e4fc223dc93d076d8a.zip
gdb-90a579fafdc1eaa80ce5f1e4fc223dc93d076d8a.tar.gz
gdb-90a579fafdc1eaa80ce5f1e4fc223dc93d076d8a.tar.bz2
* config/tc-sparc.c (parse_keyword_arg): Allow numbers in reg names.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-sparc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c529425..d0f7e29 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+Thu Sep 18 11:24:01 1997 Doug Evans <dje@canuck.cygnus.com>
+
+ * config/tc-sparc.c (parse_keyword_arg): Allow numbers in reg names.
+
Wed Sep 17 16:54:20 1997 Nick Clifton <nickc@cygnus.com>
* config/tc-v850.c (v850_reloc_prefix): Recoded to use CHECK_ ()
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index f6b4df0..8a9f849 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -752,7 +752,7 @@ md_begin ()
while (i < sparc_num_opcodes)
{
const char *name = sparc_opcodes[i].name;
- retval = hash_insert (op_hash, name, &sparc_opcodes[i]);
+ retval = hash_insert (op_hash, name, (PTR) &sparc_opcodes[i]);
if (retval != NULL)
{
fprintf (stderr, "internal error: can't hash `%s': %s\n",
@@ -1143,7 +1143,7 @@ parse_keyword_arg (lookup_fn, input_pointerP, valueP)
char c, *p, *q;
p = *input_pointerP;
- for (q = p + (*p == '#' || *p == '%'); isalpha (*q) || *q == '_'; ++q)
+ for (q = p + (*p == '#' || *p == '%'); isalnum (*q) || *q == '_'; ++q)
continue;
c = *q;
*q = 0;