aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJürgen Urban <JuergenUrban@gmx.de>2013-07-22 18:48:32 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-07-22 18:48:32 +0000
commit04dfc6df2e1cc1b2534f8160a58d8c9e2c3f18f6 (patch)
tree887fe9a17b4b2dac2e4736cf69d07484405e5cd1 /gcc/config.gcc
parent5656d96ecc468139423ce8a5ad846a38cbbeebbe (diff)
downloadgcc-04dfc6df2e1cc1b2534f8160a58d8c9e2c3f18f6.zip
gcc-04dfc6df2e1cc1b2534f8160a58d8c9e2c3f18f6.tar.gz
gcc-04dfc6df2e1cc1b2534f8160a58d8c9e2c3f18f6.tar.bz2
config.gcc (mips*-*-*): Add --with-fpu support.
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. From-SVN: r201143
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 e1b688f..1a398a7 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