aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorDoug Gregor <dgregor@gcc.gnu.org>2006-11-01 16:29:06 +0000
committerDoug Gregor <dgregor@gcc.gnu.org>2006-11-01 16:29:06 +0000
commit966541e34dff4d48bded2823853a433c90289245 (patch)
tree875c5fa5548c28bdbec98cd7f7e0e301a08a6248 /gcc/c-common.c
parentdfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82 (diff)
downloadgcc-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-common.c')
-rw-r--r--gcc/c-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index a901aba..47cda1b 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -401,6 +401,11 @@ int flag_access_control = 1;
int flag_check_new;
+/* Nonzero if we want to allow the use of experimental features that
+ are likely to become part of C++0x. */
+
+int flag_cpp0x = 0;
+
/* Nonzero if we want the new ISO rules for pushing a new scope for `for'
initialization variables.
0: Old rules, set by -fno-for-scope.