This is the mail archive of the
mailing list for the GCC project.
Re: Changing WCHAR_TYPE from "long int" to "int"?
On Mon, Aug 06, 2001 at 04:33:54PM +0100, Eric Christopher wrote:
> > Yes. Gcc won't even compile since cpp uses MAX_WCHAR_TYPE_SIZE, which
> > is defined as WCHAR_TYPE_SIZE and has be to a constant. But mips'
> > BITS_PER_WORD is not avaiable for cpp. Besides, we use 32bit wchar_t
> > on most of the 64bit Linux targets. Why do we want to use 64 for
> > mips64? Check out WCHAR_TYPE_SIZE on ia64 and alpha, which are all
> > 64bit Linux targets.
> Right. alpha doesn't define WCHAR_TYPE_SIZE, ia64 seems to do what you
# grep WCHAR_TYPE defaults.h config/alpha/linux.h
defaults.h:#define WCHAR_TYPE_SIZE INT_TYPE_SIZE
config/alpha/linux.h:#define WCHAR_TYPE "int"
# grep INT_TYPE_SIZE config/alpha/*.h
config/alpha/alpha.h:#define INT_TYPE_SIZE 32
So WCHAR_TYPE_SIZE is 32 for Linux/alpha.