[newlib-cygwin/main] libc: arc: Exclude strchr.S from targets with 16-entry regfile

Corinna Vinschen corinna@sourceware.org
Tue Mar 17 16:01:29 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=278de57d95ef6d1a755991ca26d03b5600e1740f

commit 278de57d95ef6d1a755991ca26d03b5600e1740f
Author:     Yuriy Kolerov <Yuriy.Kolerov@synopsys.com>
AuthorDate: Thu Mar 12 15:53:28 2026 -0700
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Tue Mar 17 16:47:11 2026 +0100

    libc: arc: Exclude strchr.S from targets with 16-entry regfile
    
    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>

Diff:
---
 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 1bf6db97d798..eed6278f7507 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"


More information about the Newlib-cvs mailing list