diff options
author | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 16:27:23 +0000 |
---|---|---|
committer | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 16:27:23 +0000 |
commit | 093aec7c290ad028466ef761fe4fff8934f85439 (patch) | |
tree | f33627802f60b90da58484e120f09ecb34c5032f /libcpp/init.c | |
parent | 597276f8e2fd27d722ce1a50a9ceae93aae71fe2 (diff) | |
download | gcc-093aec7c290ad028466ef761fe4fff8934f85439.tar.gz |
2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
* include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
for experimental C++0x mode.
* init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
adopted the preprocessor changes introduced in C99.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index 4330f884be7..db697e9ed34 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -80,18 +80,20 @@ struct lang_flags static const struct lang_flags lang_defaults[] = { /* c99 c++ xnum xid std // digr */ - /* GNUC89 */ { 0, 0, 1, 0, 0, 1, 1 }, - /* GNUC99 */ { 1, 0, 1, 0, 0, 1, 1 }, - /* STDC89 */ { 0, 0, 0, 0, 1, 0, 0 }, - /* STDC94 */ { 0, 0, 0, 0, 1, 0, 1 }, - /* STDC99 */ { 1, 0, 1, 0, 1, 1, 1 }, - /* GNUCXX */ { 0, 1, 1, 0, 0, 1, 1 }, - /* CXX98 */ { 0, 1, 1, 0, 1, 1, 1 }, - /* ASM */ { 0, 0, 1, 0, 0, 1, 0 } - /* xid should be 1 for GNUC99, STDC99, GNUCXX and CXX98 when no - longer experimental (when all uses of identifiers in the compiler - have been audited for correct handling of extended - identifiers). */ + /* GNUC89 */ { 0, 0, 1, 0, 0, 1, 1 }, + /* GNUC99 */ { 1, 0, 1, 0, 0, 1, 1 }, + /* STDC89 */ { 0, 0, 0, 0, 1, 0, 0 }, + /* STDC94 */ { 0, 0, 0, 0, 1, 0, 1 }, + /* STDC99 */ { 1, 0, 1, 0, 1, 1, 1 }, + /* GNUCXX */ { 0, 1, 1, 0, 0, 1, 1 }, + /* CXX98 */ { 0, 1, 1, 0, 1, 1, 1 }, + /* GNUCXX0X */ { 1, 1, 1, 0, 0, 1, 1 }, + /* CXX0X */ { 1, 1, 1, 0, 1, 1, 1 }, + /* ASM */ { 0, 0, 1, 0, 0, 1, 0 } + /* xid should be 1 for GNUC99, STDC99, GNUCXX, CXX98, GNUCXX0X, and + CXX0X when no longer experimental (when all uses of identifiers + in the compiler have been audited for correct handling of + extended identifiers). */ }; /* Sets internal flags correctly for a given language. */ |