diff options
author | Jason Merrill <jason@redhat.com> | 2015-05-09 00:50:15 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-05-09 00:50:15 -0400 |
commit | 765189ff60c25e93d65f8c202afc893ea8cef220 (patch) | |
tree | b59d2738088b3f645d400b99f7c6f12dfeff9a7a /gcc/cp/cp-gimplify.c | |
parent | fe191308ddc9bb7095d01bcd11dcaf1f38c84bab (diff) | |
download | gcc-765189ff60c25e93d65f8c202afc893ea8cef220.zip gcc-765189ff60c25e93d65f8c202afc893ea8cef220.tar.gz gcc-765189ff60c25e93d65f8c202afc893ea8cef220.tar.bz2 |
c.opt (Wc++11-compat): Make primary.
gcc/c-family/
* c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
* c-opts.c: Adjust.
gcc/cp/
* cp-gimplify.c, parser.c: Adjust.
From-SVN: r222962
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r-- | gcc/cp/cp-gimplify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index 35749ef..d5a64fc 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -1231,13 +1231,13 @@ cp_genericize_r (tree *stmt_p, int *walk_subtrees, void *data) } else { - if (warn_cxx0x_compat && cxx_dialect < cxx11 + if (warn_cxx11_compat && cxx_dialect < cxx11 && DECL_DESTRUCTOR_P (current_function_decl) && (TYPE_RAISES_EXCEPTIONS (TREE_TYPE (current_function_decl)) == NULL_TREE) && (get_defaulted_eh_spec (current_function_decl) == empty_except_spec)) - warning_at (loc, OPT_Wc__0x_compat, + warning_at (loc, OPT_Wc__11_compat, "in C++11 this throw will terminate because " "destructors default to noexcept"); } |