OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libgfortran / configure.host
index 73da571..92b6433 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
@@ -38,3 +38,10 @@ fi
 if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
   fpu_host='fpu-aix'
 fi
+
+# Some targets require additional compiler options for NaN/Inf.
+ieee_flags=
+case "${host_cpu}" in
+  sh*)
+    ieee_flags="-mieee" ;;
+esac