This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Wide characters and GCC
- To: neil at daikokuya dot demon dot co dot uk (Neil Booth)
- Subject: Re: Wide characters and GCC
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Wed, 20 Jun 2001 00:47:33 +0100 (BST)
- Cc: jsm28 at cam dot ac dot uk (Joseph S. Myers), gcc at gcc dot gnu dot org,m dot hayes at elec dot canterbury dot ac dot nz, lars at nocrew dot org
> > > Do we support target wchar_t wider than HOST_WIDE_INT in GCC?
> >
> > No, not properly. But I think it's only a hypothetical case. I
> > suspect that only "modern" implementations would have this stuff, and
> > I doubt such "modern" implementations have
> >
> > sizeof (wchar_t) < sizeof (int).
>
> Doh. I meant '>' of course.
16 bit integers are still common on embedded targets.
Of course, you would hardly want to run gcc on these targets, so you wouldn't
have to worry about HOST_WIDE_INT being too small (and besides, that should
be long, not int), but you shouldn't assume that wchar_t can fit into an int.