summaryrefslogtreecommitdiff
path: root/libgfortran/configure.host
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 22:56:08 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-30 22:56:08 +0000
commit72934c536ca121a5f5cf26e58100718186488f17 (patch)
treec0341ab70cbdddbaf622a2b595066d636cb8e984 /libgfortran/configure.host
parente95d300cb7dd8279a422338d008cac74619359f1 (diff)
downloadgcc-72934c536ca121a5f5cf26e58100718186488f17.tar.gz
* configure.host: Define ieee_flags and set it to -mieee for sh.
* configure.ac: Set IEEE_FLAGS with ieee_flags. * Makefile.am: Add IEEE_FLAGS to AM_CFLAGS. * configure: Regenerate. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150280 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure.host')
-rw-r--r--libgfortran/configure.host7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index 73da57172d6..eb68c934c39 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -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