about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-13 15:10:39 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-13 15:10:39 +0000
commit090d93cde2de0986a26e2f221807c09c7bd5d3c3 (patch)
treee4022cd372868664f2ca11aa568c6a633ae997ac /sysdeps/i386/fpu/bits
parentc34fa5f5ab0c9ffb1b5e167c9276c4b250832d25 (diff)
downloadglibc-090d93cde2de0986a26e2f221807c09c7bd5d3c3.tar.gz
glibc-090d93cde2de0986a26e2f221807c09c7bd5d3c3.tar.xz
glibc-090d93cde2de0986a26e2f221807c09c7bd5d3c3.zip
Disable signbit* inline functions for gcc <= 2.7.x.
Diffstat (limited to 'sysdeps/i386/fpu/bits')
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index ac840bffed..8fb22d48d2 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -110,6 +110,9 @@
 	__result; })
 # endif	/* __i686__ */
 
+/* The gcc, version 2.7 or below, has problems with all this inlining
+   code.  So disable it for this version of the compiler.  */
+# if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7))
 /* Test for negative number.  Used in the signbit() macro.  */
 __MATH_INLINE int
 __signbitf (float __x)
@@ -129,6 +132,7 @@ __signbitl (long double __x)
   __extension__ union { long double __l; int __i[3]; } __u = { __l: __x };
   return (__u.__i[2] & 0x8000) != 0;
 }
+# endif
 #endif