PR c++/77742 - -Waligned-new and placement new.
authorJason Merrill <jason@redhat.com>
Wed, 12 Oct 2016 18:04:51 +0000 (14:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 12 Oct 2016 18:04:51 +0000 (14:04 -0400)
commit2ec69f566076547b618447ba5531260c25abed3e
treeb0b884a556e7cf9e1c8d1c48712cc88cdddf5671
parentfa8e596366cabd3c91822aee91987879a2eb58fd
PR c++/77742 - -Waligned-new and placement new.

* init.c (build_new_1): Don't -Waligned-new about placement new.
(malloc_alignment): New.  Consider MALLOC_ABI_ALIGNMENT.
* decl.c (cxx_init_decl_processing): New.

From-SVN: r241073
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/testsuite/g++.dg/cpp1z/aligned-new7.C [new file with mode: 0644]