[Patch] ARM implementation of memcmp.
Nick Clifton
nickc@redhat.com
Tue Dec 19 12:36:00 GMT 2000
Hi Guys,
I have applied the following patch, developed by Graham Stott, which
fixes a bug in the assembler implementation of the memcmp function
for the ARM.
Cheers
Nick
2000-12-19 Graham Stott <grahams@redhat.com>
* libc/machine/xscale/memcmp.c (memcmp): Add clobber for "lr".
Index: newlib/libc/machine/xscale/memcmp.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/xscale/memcmp.c,v
retrieving revision 1.1
diff -p -r1.1 memcmp.c
*** memcmp.c 2000/11/30 01:57:27 1.1
--- memcmp.c 2000/12/19 20:34:34
*************** memcmp (const void *s1, const void *s2,
*** 103,109 ****
rsb %0, r3, r2"
: "=r" (result), "=&r" (s2), "=&r" (len)
: "0" (s1), "1" (s2), "2" (len)
! : "r2", "r3", "r4", "r5", "r6", "cc");
return result;
}
#endif
--- 103,109 ----
rsb %0, r3, r2"
: "=r" (result), "=&r" (s2), "=&r" (len)
: "0" (s1), "1" (s2), "2" (len)
! : "r2", "r3", "r4", "r5", "r6", "cc", "lr");
return result;
}
#endif
More information about the Newlib
mailing list