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]

Re: Wide characters and GCC


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


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