[PATCH 1/3] libc: arc: Exclude strchr.S from targets with 16-entry regfile
Yuriy Kolerov
Yuriy.Kolerov@synopsys.com
Thu Mar 12 22:53:28 GMT 2026
An optimized version of strchr for ARC Classic is incompatible
with targets with 16-entry register file.
Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
---
newlib/libc/machine/arc/strchr.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/newlib/libc/machine/arc/strchr.S b/newlib/libc/machine/arc/strchr.S
index 1bf6db97d..eed6278f7 100644
--- a/newlib/libc/machine/arc/strchr.S
+++ b/newlib/libc/machine/arc/strchr.S
@@ -31,7 +31,8 @@
/* This implementation is optimized for performance. For code size a generic
implementation of this function from newlib/libc/string/strchr.c will be
used. */
-#if !defined (__OPTIMIZE_SIZE__) && !defined (PREFER_SIZE_OVER_SPEED)
+#if !defined (__OPTIMIZE_SIZE__) && !defined (PREFER_SIZE_OVER_SPEED) \
+ && !defined (__ARC_RF16__)
#include "asm.h"
--
2.44.2
More information about the Newlib
mailing list