PR 48977 Denormal exception on glibc targets
authorJanne Blomqvist <jb@gcc.gnu.org>
Fri, 20 May 2011 14:45:51 +0000 (17:45 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Fri, 20 May 2011 14:45:51 +0000 (17:45 +0300)
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r173952

libgfortran/ChangeLog
libgfortran/configure.host

index 9147014a21af7bc2a2b9f364273a80eb8c8e1955..d0effacaa22389907e67bf54b4663efdba0fdb6e 100644 (file)
@@ -1,3 +1,9 @@
+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.
        * 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
index eb68c934c39d575c60b0c91a16870f7394fdcddd..92b6433b968f7a9db4679d26936a4ae1f9e5fd9d 100644 (file)
 # 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