wrong strspn in alpha md_compile (fwd)

From: Andrea Arcangeli (andrea@suse.de)
Date: Sat Feb 26 2000 - 10:21:29 EST


Just in case somebody had my same troubles...

Andrea

---------- Forwarded message ----------
Date: Sat, 26 Feb 2000 16:15:28 +0100 (CET)
From: Andrea Arcangeli <andrea@suse.de>
To: bug-gnu-utils@gnu.org
Subject: wrong strspn in alpha md_compile

This patch fixes a bug in the strspn pattern that was harming me. 6 is
present in wh64 and 19 are present in some palxx opcode. The sh64 is
alomost harmless since the source doesn't compile. The palxx opcodes
instead was miscompiled as pal.

--- binutils-2.9.1.0.25/gas/config/tc-alpha.c.~1~ Wed Apr 21 23:44:17 1999
+++ binutils-2.9.1.0.25/gas/config/tc-alpha.c Sat Feb 26 16:07:57 2000
@@ -817,7 +817,7 @@
   int ntok, opnamelen, trunclen;
 
   /* split off the opcode */
- opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_/48");
+ opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_/48619");
   trunclen = (opnamelen < sizeof (opname) - 1
               ? opnamelen
               : sizeof (opname) - 1);

Andrea



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:25 EST