summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/arm/strlen-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/arm/strlen-stub.c')
-rw-r--r--newlib/libc/machine/arm/strlen-stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/arm/strlen-stub.c b/newlib/libc/machine/arm/strlen-stub.c
index 9fb47ba61..f75ee48d0 100644
--- a/newlib/libc/machine/arm/strlen-stub.c
+++ b/newlib/libc/machine/arm/strlen-stub.c
@@ -67,8 +67,8 @@ strlen (const char* str)
#if defined __thumb__ && ! defined __thumb2__
#include "../../string/strlen.c"
-#elif defined _ISA_ARM_7 || defined __ARM_ARCH_6T2__
- /* Implemented in strlen-armv7.S. */
+#elif (__ARM_ARCH >= 7 && defined __ARM_ARCH_ISA_ARM) || defined __ARM_ARCH_6T2__
+ /* Implemented in strlen.S. */
#else
size_t __attribute__((naked))