summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/arm/strlen.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-10-18 11:35:17 +0000
committerNick Clifton <nickc@redhat.com>2011-10-18 11:35:17 +0000
commitd6f6573a5ff9adbc16b76c5d91ba8f6ab401b822 (patch)
tree1af4a29cc88ab3ff3b012b42cb4cd8d774f13e7e /newlib/libc/machine/arm/strlen.c
parent53609fd238a7ba4e8e9b53378cef6087170add22 (diff)
downloadcygnal-d6f6573a5ff9adbc16b76c5d91ba8f6ab401b822.tar.gz
cygnal-d6f6573a5ff9adbc16b76c5d91ba8f6ab401b822.tar.bz2
cygnal-d6f6573a5ff9adbc16b76c5d91ba8f6ab401b822.zip
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
memchr.S. * libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included in .S files. * libc/machine/arm/memchr-stub.c: New file - just selects what to compile. * libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S. * libc/machine/arm/strlen-armv7.S: New file. * libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't for v7 or 6t2. * libc/machine/arm/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/machine/arm/strlen.c')
-rw-r--r--newlib/libc/machine/arm/strlen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/machine/arm/strlen.c b/newlib/libc/machine/arm/strlen.c
index f31f72170..b8de22994 100644
--- a/newlib/libc/machine/arm/strlen.c
+++ b/newlib/libc/machine/arm/strlen.c
@@ -60,6 +60,8 @@ strlen (const char* str)
}
#else
+#if !(defined(_ISA_ARM_7) || defined(__ARM_ARCH_6T2__))
+
size_t __attribute__((naked))
strlen (const char* str)
{
@@ -178,3 +180,4 @@ strlen (const char* str)
"RETURN");
}
#endif
+#endif