gcc-3.3.3 and softfloat?

Dan Kegel dank@kegel.com
Fri Dec 3 15:08:00 GMT 2004


Steven Scholz wrote:
> Dan Kegel wrote:
> 
>> Marius Groeger wrote:
>>
>>> Yes, but you need to configure _gcc_ to use soft-float. Try to use 
>>> --without-fp in GCC_EXTRA_CONFIG. Glibc is not important for your 
>>> initial problem, and probably configured just fine the way it is.
>>
>>
>>
>> aha.  googling around a bit, it does look like
>> GCC_EXTRA_CONFIG="--with-float=soft --without-fp"
>> might be a good idea...
> 
> 
> Ok. Maybe I can just rebuild my toolchain at the weekend and see if that 
> changes something.
> 
> BTW: I just tried to build my appilication with -msoft-float. But the 
> linker (during ./configure) complained about a missing libfloat ... :-(

Poking around a bit, I notice uclibc had to tweak gcc-3.3 slightly:
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-3.3.x/sources/gcc-uclibc-3.3-120-softfloat.patch?rev=1.1&view=markup
to add
+case " $targargs " in
+ *" --nfp "* | *" --without-float "*)
+    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -msoft-float'
+    ;;
+esac
to configure.in.  Oh, what a salad of options to choose from...

And here's how they build libfloat:
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-3.3.x/make/libfloat.mk?rev=1.2&view=markup
It appears there are versions of libfloat both external to gcc and
bundled with.  See
http://www.mail-archive.com/linux-arm@lists.arm.linux.org.uk/msg02380.html
http://gcc.gnu.org/ml/gcc-patches/2001-12/msg01354.html
No idea what the current state is; presumably gcc-3.4 has
libfloat all nicely bundled in, but who knows... I haven't looked.

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
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