From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 793FD386547E; Wed, 22 May 2024 18:27:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 793FD386547E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1716402454; bh=mOVNay1xSMbL/JPSoxkAsOkPon4bYi2aIceDRUIQGlA=; h=From:To:Subject:Date:From; b=v/ibPyNS8vs0vm1jXQow424MMt6eUjW2GaEWBArvrBFwh/MW8mppECQzwlxRnoUAF KtLkTIgpvCZHFZ2XJCpt/taDBjfLeDqaDZNYnCGpjpG1Q1CU0Fppx8i2YsmINTwJxQ g7MM5bPMf7hedmGvRrOGI+2PtFgCkW/3vI/pDqTc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] arc: libc: Add support of 16-entry register file X-Act-Checkin: newlib-cygwin X-Git-Author: Claudiu Zissulescu X-Git-Refname: refs/heads/main X-Git-Oldrev: f84fed52916dae4d297f3a9b6b607cd6a1ed3ede X-Git-Newrev: d85bb55f455100b71708bf0a886a9fac958b4191 Message-Id: <20240522182734.793FD386547E@sourceware.org> Date: Wed, 22 May 2024 18:27:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dd85bb55f455= 100b71708bf0a886a9fac958b4191 commit d85bb55f455100b71708bf0a886a9fac958b4191 Author: Claudiu Zissulescu Date: Tue May 21 10:56:45 2024 +0100 arc: libc: Add support of 16-entry register file =20 ARC supports a restricted register file with 16 registers. However, optimized routines support only a full register file. Thus, fallback on default implementation in case of 16-entry register file. =20 Signed-off-by: Claudiu Zissulescu Diff: --- newlib/libc/machine/arc/memcmp-bs-norm.S | 5 +++-- newlib/libc/machine/arc/memcmp-stub.c | 5 +++-- newlib/libc/machine/arc/memcmp.S | 5 +++-- newlib/libc/machine/arc/memcpy-archs.S | 5 +++-- newlib/libc/machine/arc/memcpy-bs.S | 5 +++-- newlib/libc/machine/arc/memcpy-stub.c | 5 +++-- newlib/libc/machine/arc/memcpy.S | 5 +++-- newlib/libc/machine/arc/memset-archs.S | 5 +++-- newlib/libc/machine/arc/memset-bs.S | 5 +++-- newlib/libc/machine/arc/memset-stub.c | 5 +++-- newlib/libc/machine/arc/memset.S | 5 +++-- newlib/libc/machine/arc/strchr-bs-norm.S | 5 +++-- newlib/libc/machine/arc/strchr-bs.S | 5 +++-- newlib/libc/machine/arc/strchr-stub.c | 5 +++-- newlib/libc/machine/arc/strcmp-archs.S | 5 +++-- newlib/libc/machine/arc/strcmp-stub.c | 5 +++-- newlib/libc/machine/arc/strcmp.S | 5 +++-- newlib/libc/machine/arc/strcpy-bs-arc600.S | 5 +++-- newlib/libc/machine/arc/strcpy-bs.S | 5 +++-- newlib/libc/machine/arc/strcpy-stub.c | 5 +++-- newlib/libc/machine/arc/strcpy.S | 5 +++-- newlib/libc/machine/arc/strlen-bs-norm.S | 5 +++-- newlib/libc/machine/arc/strlen-bs.S | 5 +++-- newlib/libc/machine/arc/strlen-stub.c | 5 +++-- newlib/libc/machine/arc/strlen.S | 5 +++-- newlib/libc/machine/arc/strncpy-bs.S | 5 +++-- newlib/libc/machine/arc/strncpy-stub.c | 5 +++-- newlib/libc/machine/arc/strncpy.S | 5 +++-- 28 files changed, 84 insertions(+), 56 deletions(-) diff --git a/newlib/libc/machine/arc/memcmp-bs-norm.S b/newlib/libc/machine= /arc/memcmp-bs-norm.S index be2464ac0..b136fdc33 100644 --- a/newlib/libc/machine/arc/memcmp-bs-norm.S +++ b/newlib/libc/machine/arc/memcmp-bs-norm.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memcmp.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memcmp-stub.c b/newlib/libc/machine/ar= c/memcmp-stub.c index 30c7884d2..872f57b01 100644 --- a/newlib/libc/machine/arc/memcmp-stub.c +++ b/newlib/libc/machine/arc/memcmp-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/memcmp.c" #else /* See memcmp-*.S. */ diff --git a/newlib/libc/machine/arc/memcmp.S b/newlib/libc/machine/arc/mem= cmp.S index 7c5a05882..30b7a7450 100644 --- a/newlib/libc/machine/arc/memcmp.S +++ b/newlib/libc/machine/arc/memcmp.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memcmp.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memcpy-archs.S b/newlib/libc/machine/a= rc/memcpy-archs.S index 84e766ad8..f30dafd4f 100644 --- a/newlib/libc/machine/arc/memcpy-archs.S +++ b/newlib/libc/machine/arc/memcpy-archs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memcpy-bs.S b/newlib/libc/machine/arc/= memcpy-bs.S index 5a224eb8b..6c86adf1d 100644 --- a/newlib/libc/machine/arc/memcpy-bs.S +++ b/newlib/libc/machine/arc/memcpy-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memcpy-stub.c b/newlib/libc/machine/ar= c/memcpy-stub.c index cc46c2d08..207fe8dbc 100644 --- a/newlib/libc/machine/arc/memcpy-stub.c +++ b/newlib/libc/machine/arc/memcpy-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/memcpy.c" #else /* See memcpy-*.S. */ diff --git a/newlib/libc/machine/arc/memcpy.S b/newlib/libc/machine/arc/mem= cpy.S index 6452f975e..d31bb2c12 100644 --- a/newlib/libc/machine/arc/memcpy.S +++ b/newlib/libc/machine/arc/memcpy.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memset-archs.S b/newlib/libc/machine/a= rc/memset-archs.S index dc912aa77..1204cc0d7 100644 --- a/newlib/libc/machine/arc/memset-archs.S +++ b/newlib/libc/machine/arc/memset-archs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memset.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memset-bs.S b/newlib/libc/machine/arc/= memset-bs.S index 0206668ac..0b5e43651 100644 --- a/newlib/libc/machine/arc/memset-bs.S +++ b/newlib/libc/machine/arc/memset-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memset.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/memset-stub.c b/newlib/libc/machine/ar= c/memset-stub.c index 981ca1f30..d285eb463 100644 --- a/newlib/libc/machine/arc/memset-stub.c +++ b/newlib/libc/machine/arc/memset-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/memset.c" #else /* See memset-*.S. */ diff --git a/newlib/libc/machine/arc/memset.S b/newlib/libc/machine/arc/mem= set.S index 126d9ff7c..229205da1 100644 --- a/newlib/libc/machine/arc/memset.S +++ b/newlib/libc/machine/arc/memset.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/memset.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strchr-bs-norm.S b/newlib/libc/machine= /arc/strchr-bs-norm.S index e69ac6c82..2cd7e7fdb 100644 --- a/newlib/libc/machine/arc/strchr-bs-norm.S +++ b/newlib/libc/machine/arc/strchr-bs-norm.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric 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__) =20 /* ARC700 has a relatively long pipeline and branch prediction, so we want to avoid branches that are hard to predict. On the other hand, the diff --git a/newlib/libc/machine/arc/strchr-bs.S b/newlib/libc/machine/arc/= strchr-bs.S index eb61a3a32..125d1f771 100644 --- a/newlib/libc/machine/arc/strchr-bs.S +++ b/newlib/libc/machine/arc/strchr-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric 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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strchr-stub.c b/newlib/libc/machine/ar= c/strchr-stub.c index 8d84a8255..ea7a3b4a5 100644 --- a/newlib/libc/machine/arc/strchr-stub.c +++ b/newlib/libc/machine/arc/strchr-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/strchr.c" #else /* See strchr-*.S. */ diff --git a/newlib/libc/machine/arc/strcmp-archs.S b/newlib/libc/machine/a= rc/strcmp-archs.S index 6cccf2773..543cebc4e 100644 --- a/newlib/libc/machine/arc/strcmp-archs.S +++ b/newlib/libc/machine/arc/strcmp-archs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strcmp.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strcmp-stub.c b/newlib/libc/machine/ar= c/strcmp-stub.c index 19528e333..ab85b792f 100644 --- a/newlib/libc/machine/arc/strcmp-stub.c +++ b/newlib/libc/machine/arc/strcmp-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/strcmp.c" #else /* See strcmp-*.S. */ diff --git a/newlib/libc/machine/arc/strcmp.S b/newlib/libc/machine/arc/str= cmp.S index 40a9e943f..32a651ed8 100644 --- a/newlib/libc/machine/arc/strcmp.S +++ b/newlib/libc/machine/arc/strcmp.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strcmp.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strcpy-bs-arc600.S b/newlib/libc/machi= ne/arc/strcpy-bs-arc600.S index e80ffe535..2979702de 100644 --- a/newlib/libc/machine/arc/strcpy-bs-arc600.S +++ b/newlib/libc/machine/arc/strcpy-bs-arc600.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strcpy-bs.S b/newlib/libc/machine/arc/= strcpy-bs.S index 26ac6c78d..d8c36abb6 100644 --- a/newlib/libc/machine/arc/strcpy-bs.S +++ b/newlib/libc/machine/arc/strcpy-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strcpy-stub.c b/newlib/libc/machine/ar= c/strcpy-stub.c index 80ea0e81d..d3b182f85 100644 --- a/newlib/libc/machine/arc/strcpy-stub.c +++ b/newlib/libc/machine/arc/strcpy-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/strcpy.c" #else /* See strcpy-*.S. */ diff --git a/newlib/libc/machine/arc/strcpy.S b/newlib/libc/machine/arc/str= cpy.S index e379b7930..132bd168c 100644 --- a/newlib/libc/machine/arc/strcpy.S +++ b/newlib/libc/machine/arc/strcpy.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strcpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strlen-bs-norm.S b/newlib/libc/machine= /arc/strlen-bs-norm.S index 5f8db32cc..89c6fcd68 100644 --- a/newlib/libc/machine/arc/strlen-bs-norm.S +++ b/newlib/libc/machine/arc/strlen-bs-norm.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strlen.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__) =20 #include "asm.h" #if (defined (__ARC700__) || defined (__ARCEM__) || defined (__ARCHS__)) \ diff --git a/newlib/libc/machine/arc/strlen-bs.S b/newlib/libc/machine/arc/= strlen-bs.S index 59c350482..15caa830c 100644 --- a/newlib/libc/machine/arc/strlen-bs.S +++ b/newlib/libc/machine/arc/strlen-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strlen.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strlen-stub.c b/newlib/libc/machine/ar= c/strlen-stub.c index 942e9be68..c52eecaa6 100644 --- a/newlib/libc/machine/arc/strlen-stub.c +++ b/newlib/libc/machine/arc/strlen-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/strlen.c" #else /* See strlen-*.S. */ diff --git a/newlib/libc/machine/arc/strlen.S b/newlib/libc/machine/arc/str= len.S index 67f820fe9..2072f3d15 100644 --- a/newlib/libc/machine/arc/strlen.S +++ b/newlib/libc/machine/arc/strlen.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strlen.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strncpy-bs.S b/newlib/libc/machine/arc= /strncpy-bs.S index ec991524e..30770483c 100644 --- a/newlib/libc/machine/arc/strncpy-bs.S +++ b/newlib/libc/machine/arc/strncpy-bs.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strncpy.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__) =20 #include "asm.h" =20 diff --git a/newlib/libc/machine/arc/strncpy-stub.c b/newlib/libc/machine/a= rc/strncpy-stub.c index 3f8f9db37..4a3a6073f 100644 --- a/newlib/libc/machine/arc/strncpy-stub.c +++ b/newlib/libc/machine/arc/strncpy-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -29,7 +29,8 @@ */ =20 =20 -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/strncpy.c" #else /* See strncpy-*.S. */ diff --git a/newlib/libc/machine/arc/strncpy.S b/newlib/libc/machine/arc/st= rncpy.S index b04f5895d..959f2a4d3 100644 --- a/newlib/libc/machine/arc/strncpy.S +++ b/newlib/libc/machine/arc/strncpy.S @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. =20 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are = met: @@ -31,7 +31,8 @@ /* This implementation is optimized for performance. For code size a gene= ric implementation of this function from newlib/libc/string/strncpy.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__) =20 #include "asm.h"