This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFH] Getting rid of WCHAR_TYPE_SIZE

> Date: Wed, 8 May 2002 21:13:30 +0100
> To:
> Cc: Richard Kenner <>, Robert Dewar <>
> From: Neil Booth <>

> Successfully removing WCHAR_UNSIGNED tempted me to look at
> getting rid of WCHAR_TYPE_SIZE like Mark suggested.

> It turns out there is only one user in the whole compiler,
> and it's in Ada (huh?).  In targtyps.c, we have:

> Pos
> get_target_wchar_t_size ()
> {
>   /* We never want wide chacters less than "short" in Ada.  */
> }

I suspect this is is due to:

kankakee bash[325] grep 'WCHAR_TYPE_SIZE 8' * */*
m68k/vxm68k.h:#define WCHAR_TYPE_SIZE 8
sparc/vxsparc.h:#define WCHAR_TYPE_SIZE 8
sparc/vxsparc64.h:#define WCHAR_TYPE_SIZE 8

:-( These are wrong, were wrong, and will always be wrong.  The better
solution, is to fix that code, and remove the stupid hack around in

Zack will probably be submitting work soon to fix these.

#define WCHAR_TYPE_SIZE 16

is solution we've adopted for these files.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]