This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFH] Getting rid of WCHAR_TYPE_SIZE
Zack Weinberg <zack@codesourcery.com> writes:
> On Wed, May 08, 2002 at 09:13:30PM +0100, Neil Booth wrote:
> > 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);
> > }
> >
> > It seems a shame to have to maintain over 200 lines of #define
> > and #undef gunk just for this. Can someone suggest a replacement?
>
> MODE_BITSIZE (TYPE_MODE (wchar_type_node)) ? Only works if targtyps.c
> is linked into the compiler proper, not one of the myriad Ada helper
> utilities.
Unfortunately, it is linked into one of the helper programs.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>