PR 53379 Print backtrace on error termination.
[gcc.git] / libgfortran / configure.host
index eb68c934c39d575c60b0c91a16870f7394fdcddd..0a12a32fc8a521c48546375b82c237b6693f09aa 100644 (file)
 
 # DEFAULTS
 fpu_host='fpu-generic'
+ieee_support='no'
 
-# HOST-SPECIFIC OVERRIDES
-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'
+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_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
-  fpu_host='fpu-aix'
+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