Preprocessor arithmetic
Neil Booth
neilb@earthling.net
Mon Nov 13 23:30:00 GMT 2000
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.
More information about the Gcc
mailing list