This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Remove the null check from placement new in all modes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]