ARM double return problem: -mhard-float
Daniel Kegel
dank@kegel.com
Wed Nov 10 19:18:00 GMT 2004
Craig A. Vanderborgh wrote:
> is evidently the answer! When I incorporate this option into my gcc
> command line, the correct code gets generated.
>
> How can I incorporate this option into my crosstool build so that all
> libraries, etc. are built with this option in force??
I think you can force -mhard-float by passing --with-float=hard to gcc's configure.
crosstool.sh lets you do this by setting GCC_EXTRA_CONFIG to --with-float=hard
The crosstool demo scripts want that set in the cpu .dat file.
(See arm-softfloat.dat, which does the opposite, setting GCC_EXTRA_CONFIG
to --with-float=soft.)
But I think hard float is the default!
It's a bit disturbing that you need to set it explicitly.
Maybe you're using a bogus old version of crosstool that included
the softfloat patch by default?
Which version of crosstool are you using, and
exactly how did you build your toolchain?
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list