[PATCH] Allow new/delete operator deletion only for replaceable.

Jakub Jelinek jakub@redhat.com
Tue Apr 14 08:37:28 GMT 2020


On Tue, Apr 14, 2020 at 09:11:37AM +0200, Martin Liška wrote:
> +/* PR c++/94314.  */
> +/* { dg-do run } */
> +/* { dg-options "-O2 -fdump-tree-cddce-details -std=c++14" } */
> +/* { dg-additional-options "-fdelete-null-pointer-checks" } */

Any reason why you want to do it for -std=c++14 only?
Wouldn't
// PR c++/94314
// { dg-do run { target c++14 } }
// { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-cddce-details" }
be better (and no need for dg-additional-options if you have dg-options
already and don't have some effective target on it).

> +
> +#include <stdio.h>

What do you need stdio.h for?

Otherwise, LGTM, but please give the C++ maintainers time to comment.

	Jakub



More information about the Gcc-patches mailing list