Subject: Re: soft-float builds
To: Ben Harris <bjh21@netbsd.org>
From: Richard Earnshaw <rearnsha@arm.com>
List: tech-toolchain
Date: 06/04/2001 14:40:59
> In article <20010530122208.8DD011E4BF@thoreau.thistledown.com.au> you write:
> >Further to my recent soft-float changes, I'd like to add an option to
> >the bsd.*.mk files to turn on building soft-float binaries for platforms
> >that usually default to "normal" floating-point enabled code.
> >
> >What I was thinking was something along the lines of a
> >
> >	MKSOFTFLOAT=	yes|no
> >
> >make variable, which would do things like add "-msoft-float" to the CC
> >and CXX (and FC?) variables, and be used in the libc/arch/* makefiles
> >(or even just libc/Makefile) to enable softfloat support in libc.
> 
> Does that mean that all our GCC configs should default to -mhard-float? 
> AFAIK, arm and sh3 currently default to soft-float.
> 

-mhard-float and -msoft-float must be handled on a machine by machine 
basis.  Not all compilers support it (hence '-m', indicating a 
machine-specific option).  Indeed, I don't even expect future versions of 
the arm compiler to support it once I have VFP support added.

R.