public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* analyzer/strndup-1.c: skip on *-*-vxworks*
@ 2022-03-29  2:23 Alexandre Oliva
  2022-03-29  7:13 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2022-03-29  2:23 UTC (permalink / raw)
  To: 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 <string.h>
 #include <stdlib.h>
 


-- 
Alexandre Oliva, happy hacker                https://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 <https://stallmansupport.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: analyzer/strndup-1.c: skip on *-*-vxworks*
  2022-03-29  2:23 analyzer/strndup-1.c: skip on *-*-vxworks* Alexandre Oliva
@ 2022-03-29  7:13 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2022-03-29  7:13 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: GCC Patches

On Tue, Mar 29, 2022 at 4:24 AM Alexandre Oliva via Gcc-patches
<gcc-patches@gcc.gnu.org> 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 <string.h>
>  #include <stdlib.h>
>
>
>
> --
> Alexandre Oliva, happy hacker                https://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 <https://stallmansupport.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-29  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29  2:23 analyzer/strndup-1.c: skip on *-*-vxworks* Alexandre Oliva
2022-03-29  7:13 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).