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: Preprocessor arithmetic


Zack Weinberg wrote:-

> Host versus target.  [u]intmax_t is the _target_'s largest integer
> type.  HOST_WIDEST_INT is the host's.  They aren't necessarily the
> same thing.
> 
> It's only an issue when cross-compiling from or to a machine with an
> unusual definition of either type - I think all commonly used machines
> these days have both be 64bit.  But it's still a concern.

It sounds non-trivial to fix in the case where the target is wider.
Or are we only worried about cases where target < host, which is
easier?  I imagine it wouldn't be too hard to get that case correct
now.

Neil.

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