re PR c++/77651 (c++ -Wno-aligned-new ICEs)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Sep 2016 15:13:46 +0000 (17:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Sep 2016 15:13:46 +0000 (17:13 +0200)
commit2e1c20b1442e4ad7f008739d4ba08f5410032d4f
tree763f0b4284cc999dc5746933eedbbba048e098a1
parentaef6a97c0e1463da3fc914b6782c7064dd889a62
re PR c++/77651 (c++ -Wno-aligned-new ICEs)

PR c++/77651
c-family/
* c.opt (Waligned-new=): Add RejectNegative.
(faligned-new=): Likewise.  Spelling fix - change
aligned_new_threshhold to aligned_new_threshold.
* c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
to aligned_new_threshold.
cp/
* init.c (build_new_1): Don't suggest to use -faligned-new if
aligned_new_threshold is non-zero.
(type_has_new_extended_alignment): Change aligned_new_threshhold
to aligned_new_threshold.
* call.c (second_parm_is_size_t, aligned_allocation_fn_p,
aligned_deallocation_fn_p, build_op_delete_call): Likewise.
* decl.c (cxx_init_decl_processing): Likewise.
testsuite/
* g++.dg/cpp1z/aligned-new6.C: New test.

From-SVN: r240317
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/aligned-new6.C [new file with mode: 0644]