This is the mail archive of the libc-hacker@sourceware.org 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]

[PATCH] Remove unnecessary prototypes for __builtin functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]