diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-28 21:09:54 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-28 21:09:54 +0000 |
commit | 0209c3409db623d68cdb98063a40c7ea4ead7d6c (patch) | |
tree | f8b9f5609e8a8c18e6cf005e58e55445f517f8c8 /gcc/cppinit.c | |
parent | 7cb4ce1205d29a7d8c18046f9683f08ffe539378 (diff) | |
download | gcc-0209c3409db623d68cdb98063a40c7ea4ead7d6c.zip gcc-0209c3409db623d68cdb98063a40c7ea4ead7d6c.tar.gz gcc-0209c3409db623d68cdb98063a40c7ea4ead7d6c.tar.bz2 |
tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
* tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
* cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
NO_BUILTIN_WCHAR_TYPE is not defined.
(CPP_WCHAR_TYPE): Delete.
* cccp.c (main): Don't change wchar_type if cplusplus.
(special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
From-SVN: r32241
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 6c76c66..eb2124e 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -63,8 +63,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef WCHAR_TYPE #define WCHAR_TYPE "int" #endif -#define CPP_WCHAR_TYPE(PFILE) \ - (CPP_OPTIONS (PFILE)->cplusplus ? "__wchar_t" : WCHAR_TYPE) /* The string value for __USER_LABEL_PREFIX__ */ @@ -530,7 +528,9 @@ static const struct builtin builtin_array[] = #ifndef NO_BUILTIN_PTRDIFF_TYPE { "__PTRDIFF_TYPE__", PTRDIFF_TYPE, T_CONST, DUMP }, #endif +#ifndef NO_BUILTIN_WCHAR_TYPE { "__WCHAR_TYPE__", WCHAR_TYPE, T_CONST, DUMP }, +#endif { 0, 0, 0, 0 } }; |