mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <ibid.ag@gmail.com>
To: musl@lists.openwall.com
Cc: Isaac Dunham <ibid.ag@gmail.com>
Subject: [PATCH] Error when built with -ffast-math.
Date: Fri, 31 Oct 2014 11:07:25 -0700	[thread overview]
Message-ID: <1414778845-11512-1-git-send-email-ibid.ag@gmail.com> (raw)

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



             reply	other threads:[~2014-10-31 18:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-31 18:07 Isaac Dunham [this message]
2014-10-31 18:16 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1414778845-11512-1-git-send-email-ibid.ag@gmail.com \
    --to=ibid.ag@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).