diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-02-07 07:46:34 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-02-07 07:46:34 +0000 |
commit | 1c51d6883ae957c26cbd2a71c09291e34a21f73c (patch) | |
tree | 9d53b8933341fc4dff85d5421e2b2231852248bd /libgcc/configure | |
parent | 6d6af792827fa779531662366b6dadad477a84dc (diff) | |
download | gcc-1c51d6883ae957c26cbd2a71c09291e34a21f73c.zip gcc-1c51d6883ae957c26cbd2a71c09291e34a21f73c.tar.gz gcc-1c51d6883ae957c26cbd2a71c09291e34a21f73c.tar.bz2 |
configure.ac (libgcc_cv_mips_hard_float): New.
libgcc/
* configure.ac (libgcc_cv_mips_hard_float): New.
* configure: Regenerate.
* config.host (mips*-*-*): Use t-hardfp-sfdf rather than
t-softfp-sfdf for hard-float targets.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Reinstate.
(softfp_float_modes, softfp_int_modes, softfp_extensions)
(softfp_truncations, softfp_exclude_libgcc2): New.
* config/t-hardfp: New file.
* config/t-hardfp-sfdf: Likewise.
* config/hardfp.c: Likewise.
From-SVN: r207593
Diffstat (limited to 'libgcc/configure')
-rw-r--r-- | libgcc/configure | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure index 092e20e..35896de 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4330,6 +4330,30 @@ EOF eval `${CC-cc} -E conftest.c | grep host_address=` rm -f conftest.c +case ${host} in +mips*-*-*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5 +$as_echo_n "checking whether the target is hard-float... " >&6; } +if test "${libgcc_cv_mips_hard_float+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __mips_hard_float + #error FOO + #endif +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libgcc_cv_mips_hard_float=yes +else + libgcc_cv_mips_hard_float=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5 +$as_echo "$libgcc_cv_mips_hard_float" >&6; } +esac + # Collect host-machine-specific information. . ${srcdir}/config.host |