diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-07 21:07:24 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-07 21:07:24 +0000 |
commit | 44a147ad2ee5436c0f2b1bb95e3de61cce8c226e (patch) | |
tree | 74df1638e099a3467f9206ea84d1ec4945ea2b23 /gcc/cpplex.c | |
parent | 522e3d222659a0f3ea3d0ffc1e72b35feafed01e (diff) | |
download | gcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.zip gcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.tar.gz gcc-44a147ad2ee5436c0f2b1bb95e3de61cce8c226e.tar.bz2 |
c-common.c (c_common_init): Set options->unsigned_wchar.
* c-common.c (c_common_init): Set options->unsigned_wchar.
* cppinit.c (cpp_create_reader): Default unsigned_wchar,
group target dependencies.
(init_builtins, cpp_handle_option): Update.
* cpplex.c (cpp_interpret_charconst): Update.
* cpplib.h (struct cpp_options): Add unsigned_wchar, rename
signed_char to unsigned_char, group target dependencies.
* defaults.h (WCHAR_UNSIGNED): Remove.
* system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
config:
* freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
doc:
* tm.texi: Remove MAX_CHAR_TYPE_SIZE.
From-SVN: r53271
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index a9f1494..39afc59 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1883,13 +1883,13 @@ cpp_interpret_charconst (pfile, token, pchars_seen, unsignedp) { width = CPP_OPTION (pfile, char_precision); max_chars = CPP_OPTION (pfile, int_precision) / width; - unsigned_p = CPP_OPTION (pfile, signed_char) == 0; + unsigned_p = CPP_OPTION (pfile, unsigned_char); } else { width = CPP_OPTION (pfile, wchar_precision); max_chars = 1; - unsigned_p = WCHAR_UNSIGNED; + unsigned_p = CPP_OPTION (pfile, unsigned_wchar); } if (width < BITS_PER_CPPCHAR_T) |