This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Remove the null check from placement new in all modes
- From: Jason Merrill <jason at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 10 Nov 2017 11:19:14 -0500
- Subject: Re: [C++ PATCH] Remove the null check from placement new in all modes
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUYNJnQRm6w=pf7FohqWn8wiGWVgoJ8RdkE3M-yCs9aGbQ@mail.gmail.com>
OK.
On Fri, Nov 10, 2017 at 12:29 AM, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> Tested manually on Linux-X64, finishing testing with the full suite on
> Linux-PPC64.
>
> I spent far too much time contemplating whether to add a compatibility switch
> for this, but -fcheck-new *is* such a compatibility switch.
>
> OK for trunk?
>
> 2017-11-10 Ville Voutilainen <ville.voutilainen@gmail.com>
>
> gcc/
>
> Remove the null check from placement new in all modes
> * cp/init.c (build_new_1): Don't do a null check for
> a namespace-scope non-replaceable placement new
> in any mode unless -fcheck-new is provided.
>
> testsuite/
>
> Remove the null check from placement new in all modes
> * g++.dg/init/pr35878_1.C: Adjust.
> * g++.dg/init/pr35878_4.C: New.