This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi!
Without this patch one gets:
/usr/include/bits/mathinline.h:107: warning: no previous prototype for `__signbitf'
/usr/include/bits/mathinline.h:116: warning: no previous prototype for `__signbit'
/usr/include/bits/mathinline.h:123: warning: no previous prototype for `__signbitl'
warnings with -Wmissing-prototypes (unless -std=c99 or -std=gnu99).
2001-11-28 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
__signbitl): Only define for ISO C99.
--- libc/sysdeps/sparc/fpu/bits/mathinline.h 2001/07/06 04:56:04 1.8
+++ libc/sysdeps/sparc/fpu/bits/mathinline.h 2001/11/28 15:19:39
@@ -101,7 +101,10 @@
/* 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_PREREQ (2, 8)
- /* Test for negative number. Used in the signbit() macro. */
+
+#if defined __USE_ISOC99
+
+/* Test for negative number. Used in the signbit() macro. */
__MATH_INLINE int
__signbitf (float __x) __THROW
{
@@ -142,6 +145,8 @@ __signbitl (long double __x) __THROW
#endif /* sparc64 */
+#endif /* __USE_ISOC99 */
+
#ifndef __NO_MATH_INLINES
__MATH_INLINE double
@@ -171,7 +176,7 @@ sqrtl(long double __x) __THROW
}
#endif /* sparc64 */
-#endif
+#endif /* !__NO_MATH_INLINES */
/* This code is used internally in the GNU libc. */
#ifdef __LIBC_INTERNAL_MATH_INLINES
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |