about summary refs log tree commit diff
path: root/config.h.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-07-16 17:51:01 +0000
committerUlrich Drepper <drepper@redhat.com>2002-07-16 17:51:01 +0000
commitb307597e9b5cbd540903ef54d32f22a4feea294a (patch)
treed638946397b8dd34df6df35ef2d99630264717a6 /config.h.in
parent17a26bee139dc943e5957b5c0e0cbff9836b1210 (diff)
downloadglibc-b307597e9b5cbd540903ef54d32f22a4feea294a.tar.gz
glibc-b307597e9b5cbd540903ef54d32f22a4feea294a.tar.xz
glibc-b307597e9b5cbd540903ef54d32f22a4feea294a.zip
Fail if __FAST_MATH__ is defined.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index af1b010aa9..bf696d3df5 100644
--- a/config.h.in
+++ b/config.h.in
@@ -2,6 +2,12 @@
 # error "glibc cannot be compiled without optimization"
 #endif
 
+/* Another evil option when it comes to compiling the C library is
+ *    --ffast-math since it alters the ABI.  */
+#ifdef __FAST_MATH__
+# error "glibc must not be compiled with --fast-math"
+#endif
+
 /* Define if using GNU ld, with support for weak symbols in a.out,
    and for symbol set and warning messages extensions in a.out and ELF.
    This implies HAVE_WEAK_SYMBOLS; set by --with-gnu-ld.  */