mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-01 07:44:05 +08:00
5b0936da94
libgfortran/ChangeLog: * configure.host (ieee_flags): Add -mieee for alpha*. * config/fpu-glibc.h (support_fpu_rounding_mode): Correctly handle GFC_FPE_UPWARD, GFC_FPE_DOWNWARD and GFC_FPE_TOWARDZERO. * config/fpu-aix.h (support_fpu_rounding_mode): Ditto. testsuite/ChangeLog: * gfortran.dg/ieee/ieee_1.F90 (dg-additional-options): Remove -O0. * gfortran.dg/ieee/ieee_rounding_1.f90 (dg-additional-options): Add. From-SVN: r212224
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
# configure.host
|
|
#
|
|
# This shell script handles all host based configuration for libgfortran.
|
|
# It sets various shell variables based on the the host triplet.
|
|
# You can modify this shell script without rerunning autoconf/aclocal/etc.
|
|
# This file is "sourced", not executed.
|
|
#
|
|
#
|
|
# It uses the following shell variables as set by config.guess:
|
|
# host The configuration host (full CPU-vendor-OS triplet)
|
|
# host_cpu The configuration host CPU
|
|
# host_os The configuration host OS
|
|
#
|
|
#
|
|
# It sets the following shell variables:
|
|
#
|
|
# fpu_host FPU-specific code file, defaults to fpu-generic.
|
|
|
|
|
|
# DEFAULTS
|
|
fpu_host='fpu-generic'
|
|
ieee_support='no'
|
|
|
|
if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
|
|
fpu_host='fpu-aix'
|
|
ieee_support='yes'
|
|
fi
|
|
|
|
if test "x${have_fpsetmask}" = "xyes"; then
|
|
fpu_host='fpu-sysv'
|
|
ieee_support='yes'
|
|
fi
|
|
|
|
if test "x${have_feenableexcept}" = "xyes"; then
|
|
fpu_host='fpu-glibc'
|
|
ieee_support='yes'
|
|
fi
|
|
|
|
# x86 asm should be used instead of glibc, since glibc doesn't support
|
|
# the x86 denormal exception.
|
|
case "${host_cpu}" in
|
|
i?86 | x86_64)
|
|
fpu_host='fpu-387'
|
|
ieee_support='yes'
|
|
;;
|
|
esac
|
|
|
|
# Some targets require additional compiler options for NaN/Inf.
|
|
ieee_flags=
|
|
case "${host_cpu}" in
|
|
alpha*)
|
|
ieee_flags="-mieee" ;;
|
|
sh*)
|
|
ieee_flags="-mieee" ;;
|
|
esac
|