public inbox for
 help / color / mirror / Atom feed
From: Jakub Jelinek <>
To: Ulrich Drepper <>
Cc: Glibc hackers <>
Subject: [PATCH] Remove unnecessary prototypes for __builtin functions
Date: Fri, 07 Nov 2008 12:34:00 -0000	[thread overview]
Message-ID: <> (raw)


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  <>

	* include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):

--- 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


                 reply	other threads:[~2008-11-07 12:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).