From fa0f8d2c29b9ec44f0fa85cacc375979b175348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Tue, 29 Nov 2011 15:46:20 +0100 Subject: Disable floating point exceptions on Mac OS X by default Many test cases provoke printouts similar to: ERTS_FP_CHECK_INIT at 0x131fd218: detected unhandled FPE at 0x1 Until the problem has been identified and fixed, disable floating point exceptions by default on Mac OS X. --- erts/configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/erts/configure.in b/erts/configure.in index e3eb6034e6..03125acced 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -2458,6 +2458,17 @@ case $ARCH-$OPSYS in darwin_mcontext_leopard=no ;; esac + +if test X${enable_fp_exceptions} = Xauto ; then + case $host_os in + darwin*) + enable_fp_exceptions=no + AC_MSG_NOTICE([Floating point exceptions disabled by default on MacOS X]) ;; + *) + ;; + esac +fi + if test X${enable_fp_exceptions} = Xauto ; then if test X${enable_hipe} = Xyes; then enable_fp_exceptions=yes -- cgit v1.2.3