Remove the null check from placement new in all modes
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 13 Nov 2017 17:02:06 +0000 (19:02 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 13 Nov 2017 17:02:06 +0000 (19:02 +0200)
commit8f2b097ed54816d28cd51254c8e4616404ae348e
treeda7596f768a618dc8ddfbf2e19b6126dcb440a16
parent81766d13a8e51e7432e2c1ff3fd1ef4735e3b820
Remove the null check from placement new in all modes

gcc/cp/

Remove the null check from placement new in all modes
* 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.
* g++.dg/torture/pr48695.C: Adjust.
* g++.dg/tree-ssa/pr31146-2.C: Likewise.
* g++.dg/tree-ssa/pr41428.C: Adjust.

From-SVN: r254694
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/init/pr35878_1.C
gcc/testsuite/g++.dg/init/pr35878_4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr48695.C
gcc/testsuite/g++.dg/tree-ssa/pr31146-2.C
gcc/testsuite/g++.dg/tree-ssa/pr41428.C