This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Cross-compiling is broken. Help me fix it.
- To: Benjamin Kosnik <bkoz at cygnus dot com>
- Subject: Re: Cross-compiling is broken. Help me fix it.
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 27 Jan 2000 12:34:26 +0100
- Cc: libstdc++ at sourceware dot cygnus dot com, tromey at cygnus dot com
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <Pine.LNX.4.04.10001251946100.31082-100000@decepticon.cygnus.com>
- Reply-To: libstdc++ at sourceware dot cygnus dot com
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