about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4430e3c554..0539897ddf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-25  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
+	__FAST_MATH__ is defined.
+
 2000-05-22  Andreas Jaeger  <aj@suse.de>
 
 	* math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index 9e9db8873d..9b1fae211b 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -566,7 +566,9 @@ ldexp (double __x, int __y)
 /* Optimized versions for some non-standardized functions.  */
 #if defined __USE_ISOC99 || defined __USE_MISC
 
+# ifdef __FAST_MATH__
 __inline_mathcodeNP (expm1, __x, __expm1_code)
+# endif
 
 /* We cannot rely on M_SQRT being defined.  So we do it for ourself
    here.  */