Cross-compiling is broken. Help me fix it.

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Sat Apr 1 00:00:00 GMT 2000


Benjamin Kosnik <bkoz@cygnus.com> writes:

[...]

| More importantly, mknumeric_limits does a pretty complete job of probing
| the (host?) floating point environment as part of it's creation of
| <limits>. I don't think this will work for things that are cross compiles
| (because a) sim might not be built and b) sim probably can't handle the
| fp-env probe (?? has anybody tried it? Gaby how likely is this to work?)

Currently, mknumeric_limits does not support cross-compiling. Because
for trapping and most floating point characteristics, we're testing
the running machine.

| So really, the probable solution is to pre-generate a default "32bit"
| <limits> file and use that for cross-compiles. . . . weak, but I don't see
| any other way.

Yes. I think that is what the compiler used to do.

-- Gaby


More information about the Libstdc++ mailing list