This is the mail archive of the gcc@gcc.gnu.org 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: gcc@gcc.gnu.org
> Cc: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>, Robert Dewar <dewar@gnat.com>
> From: Neil Booth <neil@daikokuya.demon.co.uk>

> 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.  */
>   return MAX (SHORT_TYPE_SIZE, WCHAR_TYPE_SIZE);
> }

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
Ada.

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]