]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
arc: Update missing cipher.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 18 Jul 2022 10:57:10 +0000 (13:57 +0300)
committerClaudiu Zissulescu <claziss@gmail.com>
Mon, 18 Jul 2022 11:25:31 +0000 (14:25 +0300)
The ciphers 5,7, and 9 are missing when parsing an assembly
instruction leading to errors when those ciphers are
used.

gas/config
* tc-arc.c (md_assembly): Update strspn string with the
          missing ciphers.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
gas/ChangeLog
gas/config/tc-arc.c

index 4c2b03ef216c957fc928b9d0cd9b7c73e76a4369..5a391a226366b895cceb51d71f2e941547e246d6 100644 (file)
@@ -1,3 +1,8 @@
+2022-07-18  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/tc-arc.c (md_assembly): Update strspn string with the
+       missing ciphers.
+
 2022-07-08  Nick Clifton  <nickc@redhat.com>
 
        * 2.39 branch created.
index fd648b742b40c78d5c6138f2794841f3417075a7..a606078f5b89942daa720d45e045fc8f9667cd35 100644 (file)
@@ -2517,7 +2517,7 @@ md_assemble (char *str)
   struct arc_flags flags[MAX_INSN_FLGS];
 
   /* Split off the opcode.  */
-  opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_0123468");
+  opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_0123456789");
   opname = xmemdup0 (str, opnamelen);
 
   /* Signalize we are assembling the instructions.  */