From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Remove unnecessary prototypes for __builtin functions
Date: Fri, 07 Nov 2008 12:34:00 -0000 [thread overview]
Message-ID: <20081107123939.GK32107@sunsite.ms.mff.cuni.cz> (raw)
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
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081107123939.GK32107@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).