This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM double return problem: -mhard-float


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


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