summaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-25 04:04:18 +0000
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-25 04:04:18 +0000
commit71d667783168c41367afef3112fd76b0aaa6ddd1 (patch)
treede84af4a8232165347e6ae2334611e5bfa493cc7 /gcc/c.opt
parentae49e4a6ba6f33430696f3ec4f06c0e66f2b5393 (diff)
downloadgcc-71d667783168c41367afef3112fd76b0aaa6ddd1.tar.gz
2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
* c-common.h (RID_FIRST_CXX0X): New. (RID_LAST_CXX0X): New. * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered by -Wall. * c.opt (Wc++0x-compat): New. * doc/invoke.texi (-Wc++0x-compat): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r--gcc/c.opt3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt
index c5bf9be2e26..6d3fa88e1fe 100644
--- a/gcc/c.opt
+++ b/gcc/c.opt
@@ -132,6 +132,9 @@ Wc++-compat
C Var(warn_cxx_compat)
Warn about C constructs that are not in the common subset of C and C++
+Wc++0x-compat
+C++ ObjC++ Var(warn_cxx0x_compat)
+Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 200x
Wcast-qual
C ObjC C++ ObjC++ Var(warn_cast_qual)