On Wed, 13 Feb 2019, H.J. Lu wrote:

> Like this?

This patch is missing any updates to options.texi to discuss the 
interation of Negative and RejectNegative with Joined.

> diff --git a/gcc/testsuite/gcc.dg/pr69471-1.c 
> b/gcc/testsuite/gcc.dg/pr69471-1.c
> new file mode 100644
> index 00000000000..3eac3b5bdbc
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/pr69471-1.c
> @@ -0,0 +1,9 @@
> +/* { dg-do compile } */
> +/* { dg-options "-Wno-implicit-function-declaration -Wno-int-conversion 
> -fno-builtin-free -fno-builtin-malloc" } */
> +
> +void *
> +foo (void * p)
> +{
> +  free (p);
> +  return malloc (p);

How does this test verify that both -fno-builtin-* options are in effect?  
That is, how does it fail if you remove either or both of those options?

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to