diff options
| author | Douglas Gregor <doug.gregor@gmail.com> | 2006-11-01 16:27:23 +0000 | 
|---|---|---|
| committer | Doug Gregor <dgregor@gcc.gnu.org> | 2006-11-01 16:27:23 +0000 | 
| commit | dfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82 (patch) | |
| tree | f33627802f60b90da58484e120f09ecb34c5032f /libcpp | |
| parent | b4d24eaad453776d29e74aafdba1ff691bb806c8 (diff) | |
| download | gcc-dfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82.zip gcc-dfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82.tar.gz gcc-dfafdaa655b586f9f2f45aaaf4f0d3cc4aae6e82.tar.bz2 | |
cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X for experimental C++0x mode.
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.
From-SVN: r118385
Diffstat (limited to 'libcpp')
| -rw-r--r-- | libcpp/ChangeLog | 7 | ||||
| -rw-r--r-- | libcpp/include/cpplib.h | 2 | ||||
| -rw-r--r-- | libcpp/init.c | 26 | 
3 files changed, 22 insertions, 13 deletions
| diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index b861abe..8fd237d 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,10 @@ +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. +  2006-10-29  Joseph Myers  <joseph@codesourcery.com>  	* configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux* diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index 5fb80d9..c15c8f5 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -155,7 +155,7 @@ enum cpp_ttype  /* C language kind, used when calling cpp_create_reader.  */  enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_STDC89, CLK_STDC94, CLK_STDC99, -	     CLK_GNUCXX, CLK_CXX98, CLK_ASM}; +	     CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX0X, CLK_CXX0X, CLK_ASM};  /* Payload of a NUMBER, STRING, CHAR or COMMENT token.  */  struct cpp_string GTY(()) diff --git a/libcpp/init.c b/libcpp/init.c index 4330f88..db697e9 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.  */ | 
