aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2011-05-20 17:45:51 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2011-05-20 17:45:51 +0300
commit9272cac88ae7d97a98c1abe073b017513b064fc0 (patch)
tree53fc2944c63beb8d16bdbf14c5b23e32ea3b61c1 /libgfortran
parent6c66f73369dacc9889cfaa05f8a08813e7c45f1f (diff)
downloadgcc-9272cac88ae7d97a98c1abe073b017513b064fc0.zip
gcc-9272cac88ae7d97a98c1abe073b017513b064fc0.tar.gz
gcc-9272cac88ae7d97a98c1abe073b017513b064fc0.tar.bz2
PR 48977 Denormal exception on glibc targets
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com> From-SVN: r173952
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog8
-rw-r--r--libgfortran/configure.host12
2 files changed, 13 insertions, 7 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 9147014..d0effac 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,4 +1,10 @@
2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
+ Uros Bizjak <ubizjak@gmail.com>
+
+ PR libfortran/48977
+ * configure.host: Swap order of glibc and x86 tests.
+
+2011-05-20 Janne Blomqvist <jb@gcc.gnu.org>
* config/fpu-387.h (set_fpu): Use renamed inexact macro.
* config/fpu-aix.h (set_fpu): Clarify error messages, use renamed
@@ -186,7 +192,7 @@
* io/write_float.def (output_float_FMT_G): Use current rounding mode
to set the rounding parameters. (output_float): Skip rounding
if value is zero.
-
+
2011-04-16 Janne Blomqvist <jb@gcc.gnu.org>
* intrinsics/date_and_time.c (date_and_time): Remove sprintf CPP
diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index eb68c93..92b6433 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -20,17 +20,17 @@
# DEFAULTS
fpu_host='fpu-generic'
-# HOST-SPECIFIC OVERRIDES
+if test "x${have_feenableexcept}" = "xyes"; then
+ fpu_host='fpu-glibc'
+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' ;;
esac
-# CONFIGURATION-SPECIFIC OVERRIDES
-if test "x${have_feenableexcept}" = "xyes"; then
- fpu_host='fpu-glibc'
-fi
-
if test "x${have_fpsetmask}" = "xyes"; then
fpu_host='fpu-sysv'
fi