make configure check for unsupported (SPE) powerpc hard-float models
authorRich Felker <dalias@aerifal.cx>
Sun, 6 Mar 2016 22:11:29 +0000 (17:11 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 6 Mar 2016 22:11:29 +0000 (17:11 -0500)
the SPE ABI may be compatible with soft-float, but actually making it
work requires some additional work, so for now it's best to make sure
broken builds don't happen.

configure

index 9c0762c95191da4e9bc93fe8735de71e85cbec6e..213a825479a55ad7e4a6427f94f94034d76c58aa 100755 (executable)
--- a/configure
+++ b/configure
@@ -622,6 +622,8 @@ trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
 fi
 
 if test "$ARCH" = "powerpc" ; then
+trycppif "__NO_FPRS__ && !_SOFT_FLOAT" "$t" && fail \
+  "$0: error: compiler's floating point configuration is unsupported"
 trycppif _SOFT_FLOAT "$t" && SUBARCH=${SUBARCH}-sf
 fi