[PATCH] Remove unnecessary prototypes for __builtin functions
Jakub Jelinek
jakub@redhat.com
Fri Nov 7 12:34:00 GMT 2008
Hi!
This has been apparently workaround for some GCC bug, but I've verified
that it makes no difference at all on .plt slots with GCC 4.1, 4.3 and 4.4.
In 4.4, we are considering disallowing redefinition of __builtin_*
functions, so glibc wouldn't compile at all because of this.
2008-11-07 Jakub Jelinek <jakub@redhat.com>
* include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
Remove.
--- libc/include/stdio.h.jj 2008-03-14 22:52:53.000000000 +0100
+++ libc/include/stdio.h 2008-11-07 11:54:33.000000000 +0100
@@ -160,17 +160,6 @@ libc_hidden_proto (__vfprintf_chk)
libc_hidden_proto (__vasprintf_chk)
libc_hidden_proto (__vdprintf_chk)
libc_hidden_proto (__obstack_vprintf_chk)
-
-# if !defined NOT_IN_libc && defined SHARED && defined DO_VERSIONING \
- && !defined NO_HIDDEN
-/* Special gcc builtins. */
-extern size_t __builtin_fwrite (const void *, size_t, size_t, void *)
- __asm ("__GI_fwrite");
-extern size_t __builtin_fwrite_unlocked (const void *, size_t, size_t, void *)
- __asm ("__GI_fwrite_unlocked");
-
-# endif
-
# endif
#endif
Jakub
More information about the Libc-hacker
mailing list