Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Use the arm versions of strn...



details:   https://anonhg.NetBSD.org/src/rev/331a07268d1f
branches:  trunk
changeset: 789485:331a07268d1f
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Aug 20 08:08:59 2013 +0000

description:
Use the arm versions of strnlen if compiling thumb2

diffstat:

 common/lib/libc/arch/arm/string/strnlen.S |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r b744196d72c3 -r 331a07268d1f common/lib/libc/arch/arm/string/strnlen.S
--- a/common/lib/libc/arch/arm/string/strnlen.S Tue Aug 20 08:07:30 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strnlen.S Tue Aug 20 08:08:59 2013 +0000
@@ -1,8 +1,10 @@
-/* $NetBSD: strnlen.S,v 1.2 2013/08/19 01:08:29 matt Exp $ */
+/* $NetBSD: strnlen.S,v 1.3 2013/08/20 08:08:59 matt Exp $ */
+
+#include <arm/cdefs.h>         /* for _ARM_ARCH_T2 */
 
 #define        STRNLEN
 
-#if defined(_STANDALONE) || defined(__thumb__)
+#if defined(_STANDALONE) || (defined(__thumb__) && !defined(_ARM_ARCH_T2))
 #include "strlen_naive.S"
 #else
 #include "strlen_arm.S"



Home | Main Index | Thread Index | Old Index