summaryrefslogtreecommitdiffstats
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-22 18:48:32 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-22 18:48:32 +0000
commit394563b374d34d3ad09ad7c0d799c62e43e75a97 (patch)
tree887fe9a17b4b2dac2e4736cf69d07484405e5cd1 /gcc/config.gcc
parent51ac2322283f2e67026689ccab93e1d470ed9969 (diff)
downloadppe42-gcc-394563b374d34d3ad09ad7c0d799c62e43e75a97.tar.gz
ppe42-gcc-394563b374d34d3ad09ad7c0d799c62e43e75a97.zip
gcc/
2013-07-26 Jürgen Urban <JuergenUrban@gmx.de> * config.gcc (mips*-*-*): Add --with-fpu support. Make single the default for R5900 targets. * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu. (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900. * config/mips/mips.c (mips_option_override): Report an error for -march=r5900 -mhard-float -mdouble-float. Use spu_single_format for -march=r5900 -mhard-float. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201143 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc22
1 files changed, 21 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index e1b688fd434..1a398a7232f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3091,6 +3091,16 @@ if test x$with_float = x; then
esac
fi
+# Infer a default setting for --with-fpu.
+if test x$with_fpu = x; then
+ case ${target} in
+ mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
+ # The R5900 FPU only supports single precision.
+ with_fpu=single
+ ;;
+ esac
+fi
+
# Support --with-fpmath.
if test x$with_fpmath != x; then
case ${target} in
@@ -3469,7 +3479,7 @@ case "${target}" in
;;
mips*-*-*)
- supported_defaults="abi arch arch_32 arch_64 float tune tune_32 tune_64 divide llsc mips-plt synci"
+ supported_defaults="abi arch arch_32 arch_64 float fpu tune tune_32 tune_64 divide llsc mips-plt synci"
case ${with_float} in
"" | soft | hard)
@@ -3481,6 +3491,16 @@ case "${target}" in
;;
esac
+ case ${with_fpu} in
+ "" | single | double)
+ # OK
+ ;;
+ *)
+ echo "Unknown fpu type used in --with-fpu=$with_fpu" 1>&2
+ exit 1
+ ;;
+ esac
+
case ${with_abi} in
"" | 32 | o64 | n32 | 64 | eabi)
# OK
OpenPOWER on IntegriCloud