aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c.opt
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-09-21 17:13:46 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-09-21 17:13:46 +0200
commit2e1c20b1442e4ad7f008739d4ba08f5410032d4f (patch)
tree763f0b4284cc999dc5746933eedbbba048e098a1 /gcc/c-family/c.opt
parentaef6a97c0e1463da3fc914b6782c7064dd889a62 (diff)
downloadgcc-2e1c20b1442e4ad7f008739d4ba08f5410032d4f.zip
gcc-2e1c20b1442e4ad7f008739d4ba08f5410032d4f.tar.gz
gcc-2e1c20b1442e4ad7f008739d4ba08f5410032d4f.tar.bz2
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
Diffstat (limited to 'gcc/c-family/c.opt')
-rw-r--r--gcc/c-family/c.opt4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index d01052d..3a02dbb 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -288,7 +288,7 @@ C++ ObjC++ Alias(Waligned-new=,global,none)
Warn about 'new' of type with extended alignment without -faligned-new.
Waligned-new=
-C++ ObjC++ Var(warn_aligned_new) Enum(warn_aligned_new_level) Joined Warning LangEnabledBy(C++ ObjC++,Wall,1,0)
+C++ ObjC++ Var(warn_aligned_new) Enum(warn_aligned_new_level) Joined RejectNegative Warning LangEnabledBy(C++ ObjC++,Wall,1,0)
-Waligned-new=all Warn even if 'new' uses a class member allocation function.
Wall
@@ -1071,7 +1071,7 @@ C++ ObjC++ Alias(faligned-new=,1,0)
Support C++17 allocation of over-aligned types.
faligned-new=
-C++ ObjC++ Joined Var(aligned_new_threshhold) UInteger Init(-1)
+C++ ObjC++ Joined RejectNegative Var(aligned_new_threshold) UInteger Init(-1)
-faligned-new=<N> Use C++17 over-aligned type allocation for alignments greater than N.
fall-virtual