]> sourceware.org Git - newlib-cygwin.git/commitdiff
arm: Fix memchr() for Armv8-R
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 4 Dec 2020 07:42:04 +0000 (08:42 +0100)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 14 Dec 2020 21:10:30 +0000 (16:10 -0500)
The Cortex-R52 processor is an Armv8-R processor with a NEON unit.  This
fix prevents conflicting architecture profiles A/R errors issued by the
linker.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/machine/arm/memchr.S

index 7c22b117ee0f79cf0718336541337de9f59df9b7..1a4c6512c857b47ad6efb29f63605f065c1a7d76 100644 (file)
 
 @ NOTE: This ifdef MUST match the one in memchr-stub.c
 #if defined (__ARM_NEON__) || defined (__ARM_NEON)
+#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'R'
+       .arch   armv8-r
+#else
        .arch   armv7-a
+#endif
        .fpu    neon
 
 
This page took 0.031484 seconds and 5 git commands to generate.