Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 31 Oct 2014 11:07:25 -0700
From: Isaac Dunham <ibid.ag@...il.com>
To: musl@...ts.openwall.com
Cc: Isaac Dunham <ibid.ag@...il.com>
Subject: [PATCH] Error when built with -ffast-math.

There was a bug report from someone who turned it on without knowing this.
---
 src/internal/libm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/internal/libm.h b/src/internal/libm.h
index ebcd784..f8afe5d 100644
--- a/src/internal/libm.h
+++ b/src/internal/libm.h
@@ -19,6 +19,10 @@
 #include <complex.h>
 #include <endian.h>
 
+#ifdef __FAST_MATH__
+#error Using -ffast-math to compile libc will break
+#endif
+
 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
 union ldshape {
-- 
2.1.2

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.