[PATCH 1/3] libc: arc: Exclude strchr.S from targets with 16-entry regfile
Yuriy Kolerov <[email protected]> Thu, 12 Mar 2026 15:53:28 -0700
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
An optimized version of strchr for ARC Classic is incompatible with targets with 16-entry register file. Signed-off-by: Yuriy Kolerov <[email protected]> --- 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