* [PATCH] Remove unnecessary prototypes for __builtin functions
@ 2008-11-07 12:34 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2008-11-07 12:34 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-07 12:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-07 12:34 [PATCH] Remove unnecessary prototypes for __builtin functions Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).