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-cppbuiltin.c | |
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-cppbuiltin.c')
-rw-r--r-- | gcc/c-cppbuiltin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index c6e5c6d..dc0c343 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -409,6 +409,8 @@ c_cpp_builtins (cpp_reader *pfile) cpp_define (pfile, "__GXX_WEAK__=0"); if (warn_deprecated) cpp_define (pfile, "__DEPRECATED"); + if (flag_cpp0x) + cpp_define (pfile, "__GXX_EXPERIMENTAL_CPP0X__"); } /* Note that we define this for C as well, so that we know if __attribute__((cleanup)) will interface with EH. */ |