summaryrefslogtreecommitdiff
path: root/libgfortran/configure.host
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2017-01-19 22:00:53 +0100
committerUros Bizjak <uros@gcc.gnu.org>2017-01-19 22:00:53 +0100
commit7b32a8f61f4b3a34cacbd029e85220787eada240 (patch)
treecacf5acabfee467ac9b6420c71be5a7c048e6fea /libgfortran/configure.host
parent9ade9945a07c47abf2d1d5ad3a5de504e9f37b73 (diff)
downloadgcc-7b32a8f61f4b3a34cacbd029e85220787eada240.tar.gz
re PR target/78478 (Compile Error for i386-rtems)
PR target/78478 * config/ax_check_define.m4: New file. libgfortran/ChangeLog: PR target/78478 * acinclude.m4: Include ../config/ax_check_define.m4 * configure.ac: Check if _SOFT_FLOAT is defined. * configure.host (i?86 | x86_64): Use fpu-generic when have_soft_float is set. * configure: Regenerate. From-SVN: r244651
Diffstat (limited to 'libgfortran/configure.host')
-rw-r--r--libgfortran/configure.host6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index 0a12a32fc8a..5824f253e2f 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -40,7 +40,11 @@ fi
# the x86 denormal exception.
case "${host_cpu}" in
i?86 | x86_64)
- fpu_host='fpu-387'
+ if test "x${have_soft_float}" = "xyes"; then
+ fpu_host='fpu-generic'
+ else
+ fpu_host='fpu-387'
+ fi
ieee_support='yes'
;;
esac