From b5ab6ded99afb0978dd4722d0d43b755555ac549 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Wed, 6 May 2015 15:44:54 +0200 Subject: erts: Disable float exceptions for clang/llvm Change erts/configure.in to force-disable FP exceptions if the VM is compiled by clang/llvm. clang/llvm generates FP code which does not work with FP exceptions (whether unmasked as used in the Erlang VM, or masked followed by tests of which are signalled). This is a known long-standing problem. --- erts/configure.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erts/configure.in b/erts/configure.in index 873e1e30fe..795ce0639b 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -2916,6 +2916,10 @@ else #include #include +#if defined(__clang__) || defined(__llvm__) +#error "Clang/LLVM generates broken code for FP exceptions" +#endif + volatile int erl_fp_exception; /* -- cgit v1.2.3