[Bug bootstrap/95122] Cross-compile arm32 toolchain with hard float, but Error in gcc final

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 14 10:29:04 GMT 2020


--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Don't use -mhard-float or -msoft-float.  Instead, you should be using
-mfloat-abi=[hard|softfp|soft] as appropriate.  Also, rather than encoding this
into various sets of flags you should configure the compiler with
--with-float=[hard|softfp|soft] as your environment requires.  Then it should
not be necessary to pass various flags into the library builds.

There's no such option as -mhardfloat.

More information about the Gcc-bugs mailing list