diff options
author | Doug Gregor <dgregor@gcc.gnu.org> | 2006-11-01 16:29:06 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2006-11-01 16:29:06 +0000 |
commit | 966541e34dff4d48bded2823853a433c90289245 (patch) | |
tree | 875c5fa5548c28bdbec98cd7f7e0e301a08a6248 /gcc/c.opt | |
parent | dfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82 (diff) | |
download | gcc-966541e34dff4d48bded2823853a433c90289245.zip gcc-966541e34dff4d48bded2823853a433c90289245.tar.gz gcc-966541e34dff4d48bded2823853a433c90289245.tar.bz2 |
c-common.c (flag_cpp0x): New.
2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
* c-common.c (flag_cpp0x): New.
* c-common.h (flag_cpp0x): New.
* c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
supported, define __GXX_EXPERIMENTAL_CPP0X__.
* c-opts.c (set_std_cxx0x): New.
(c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
* c.opt (std=c++0x): Document.
(std=gnu++0x): Ditto.
* doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
* doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
From-SVN: r118386
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -842,6 +842,13 @@ std=c++98 C++ ObjC++ Conform to the ISO 1998 C++ standard +std=c++0x +C++ ObjC++ +Conform to the ISO 1998 C++ standard, with extensions that are likely to +become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the +extensions enabled by this mode are experimental and may be removed in +future releases of GCC. + std=c89 C ObjC Conform to the ISO 1990 C standard @@ -858,6 +865,13 @@ std=gnu++98 C++ ObjC++ Conform to the ISO 1998 C++ standard with GNU extensions +std=gnu++0x +C++ ObjC++ +Conform to the ISO 1998 C++ standard, with GNU extensions and +extensions that are likely to become a part of the upcoming ISO C++ +standard, dubbed C++0x. Note that the extensions enabled by this mode +are experimental and may be removed in future releases of GCC. + std=gnu89 C ObjC Conform to the ISO 1990 C standard with GNU extensions |