aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2017-03-04 14:21:38 -0500
committerJason Merrill <jason@gcc.gnu.org>2017-03-04 14:21:38 -0500
commit108154ff26b048cc4c3a0e35c7778a653f6ac184 (patch)
tree1833d80a5c83857aa6da98b3a7d65dd30babf109 /gcc/cp
parent1ff4bae6b55130e47855af1baf9a022b6e65e8e2 (diff)
downloadgcc-108154ff26b048cc4c3a0e35c7778a653f6ac184.zip
gcc-108154ff26b048cc4c3a0e35c7778a653f6ac184.tar.gz
gcc-108154ff26b048cc4c3a0e35c7778a653f6ac184.tar.bz2
c.opt (Wnoexcept-type): New.
* c.opt (Wnoexcept-type): New. gcc/cp/ * mangle.c (mangle_decl): Check -Wnoexcept-type instead of -Wc++1z-compat. From-SVN: r245894
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/mangle.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b99a774..b5587fd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
2017-03-03 Jason Merrill <jason@redhat.com>
+ * mangle.c (mangle_decl): Check -Wnoexcept-type instead of
+ -Wc++1z-compat.
+
Core issues 2273 and 2277
* call.c (joust): Adjust using-declaration tiebreaker to handle
the intermediate base case.
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 8b30f42..6f7e21c 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -3856,7 +3856,7 @@ mangle_decl (const tree decl)
if (G.need_cxx1z_warning
&& (TREE_PUBLIC (decl) || DECL_REALLY_EXTERN (decl)))
- warning_at (DECL_SOURCE_LOCATION (decl), OPT_Wc__1z_compat,
+ warning_at (DECL_SOURCE_LOCATION (decl), OPT_Wnoexcept_type,
"mangled name for %qD will change in C++17 because the "
"exception specification is part of a function type",
decl);