Re: analyzer/strndup-1.c: skip on *-*-vxworks*

2022-03-29 Thread Richard Biener via Gcc-patches
On Tue, Mar 29, 2022 at 4:24 AM Alexandre Oliva via Gcc-patches
 wrote:
>
>
> Add vxworks to the set of operating systems whose C libraries don't
> support strndup.
>
> Tested on affected systems and on x86_64-linux-gnu.  Ok to install?

OK

>
> for  gcc/testsuite/ChangeLog
>
> * gcc.dg/analyzer/strndup-1.c: Add *-*-vxworks* to no-strndup
> in libc.
> ---
>  gcc/testsuite/gcc.dg/analyzer/strndup-1.c |3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c 
> b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> index edf494ac28448..8cf7a42bf5361 100644
> --- a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> +++ b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> @@ -1,4 +1,5 @@
> -/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* 
> *-*-mingw* } } */
> +/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* 
> *-*-mingw* *-*-vxworks* } } */
> +
>  #include 
>  #include 
>
>
>
> --
> Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/
>Free Software Activist   GNU Toolchain Engineer
> Disinformation flourishes because many people care deeply about injustice
> but very few check the facts.  Ask me about 


analyzer/strndup-1.c: skip on *-*-vxworks*

2022-03-28 Thread Alexandre Oliva via Gcc-patches


Add vxworks to the set of operating systems whose C libraries don't
support strndup.

Tested on affected systems and on x86_64-linux-gnu.  Ok to install?


for  gcc/testsuite/ChangeLog

* gcc.dg/analyzer/strndup-1.c: Add *-*-vxworks* to no-strndup
in libc.
---
 gcc/testsuite/gcc.dg/analyzer/strndup-1.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c 
b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
index edf494ac28448..8cf7a42bf5361 100644
--- a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
@@ -1,4 +1,5 @@
-/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* 
*-*-mingw* } } */
+/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* 
*-*-mingw* *-*-vxworks* } } */
+
 #include 
 #include 
 


-- 
Alexandre Oliva, happy hackerhttps://FSFLA.org/blogs/lxo/
   Free Software Activist   GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about