public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] arm: Fix memchr() for Armv8-R
@ 2020-12-14 21:10 Jeff Johnston
0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2020-12-14 21:10 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb
commit 6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Fri Dec 4 08:42:04 2020 +0100
arm: Fix memchr() for Armv8-R
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>
Diff:
---
newlib/libc/machine/arm/memchr.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S
index 7c22b117e..1a4c6512c 100644
--- a/newlib/libc/machine/arm/memchr.S
+++ b/newlib/libc/machine/arm/memchr.S
@@ -79,7 +79,11 @@
@ 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-14 21:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 21:10 [newlib-cygwin] arm: Fix memchr() for Armv8-R Jeff Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).