* config/tc-sparc.c (parse_keyword_arg): Allow numbers in reg names.
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 18 Sep 1997 18:25:50 +0000 (18:25 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 18 Sep 1997 18:25:50 +0000 (18:25 +0000)
gas/ChangeLog
gas/config/tc-sparc.c

index c529425..d0f7e29 100644 (file)
@@ -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_ ()
index f6b4df0..8a9f849 100644 (file)
@@ -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;