summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/arm/memcpy-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/arm/memcpy-stub.c')
-rw-r--r--newlib/libc/machine/arm/memcpy-stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/machine/arm/memcpy-stub.c b/newlib/libc/machine/arm/memcpy-stub.c
index 52a0f91bd..6cd0e3b1d 100644
--- a/newlib/libc/machine/arm/memcpy-stub.c
+++ b/newlib/libc/machine/arm/memcpy-stub.c
@@ -34,7 +34,7 @@
#elif (__ARM_ARCH >= 7 && __ARM_ARCH_PROFILE == 'A' \
&& defined (__ARM_FEATURE_UNALIGNED))
/* Defined in memcpy.S. */
-#elif __ARM_ARCH >= 7 && __ARM_ARCH_PROFILE == 'M'
+#elif __ARM_ARCH_ISA_THUMB == 2 && !__ARM_ARCH_ISA_ARM
/* Defined in memcpy.S. */
#else
# include "../../string/memcpy.c"