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/doc | |
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/doc')
-rw-r--r-- | gcc/doc/cpp.texi | 7 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 13b92f3..5a75136 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -2094,6 +2094,13 @@ This macro is defined, with value 1, if the compiler uses the old mechanism based on @code{setjmp} and @code{longjmp} for exception handling. +@item __GXX_EXPERIMENTAL_CPP0X__ +This macro is defined when compiling a C++ source file with the option +@option{-std=c++0x} or @option{-std=gnu++0x}. It indicates that some +features likely to be included in C++0x are available. Note that these +features are experimental, and may change or be removed in future +versions of GCC. + @item __GXX_WEAK__ This macro is defined when compiling a C++ source file. It has the value 1 if the compiler will use weak symbols, COMDAT sections, or diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a77f9f2..c62c02c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1199,6 +1199,18 @@ The 1998 ISO C++ standard plus amendments. @item gnu++98 The same as @option{-std=c++98} plus GNU extensions. This is the default for C++ code. + +@item c++0x +The working draft of the upcoming ISO C++0x standard. This option +enables experimental features that are likely to be included in +C++0x. The working draft is constantly changing, and any feature that is +enabled by this flag may be removed from future versions of GCC if it is +not part of the C++0x standard. + +@item gnu++0x +The same as @option{-std=c++0x} plus GNU extensions. As with +@option{-std=c++0x}, this option enables experimental features that may +be removed in future versions of GCC. @end table Even when this option is not specified, you can still use some of the |