This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/19463] linknamespace failures when compiled with -Os
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 21 Feb 2018 18:03:25 +0000
- Subject: [Bug libc/19463] linknamespace failures when compiled with -Os
- Auto-submitted: auto-generated
- References: <bug-19463-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19463
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 039c721a30392790be50dba53b4c72dbcd65be67 (commit)
from 30ac923dbe7d0c16df8a368150ecd736557508f4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=039c721a30392790be50dba53b4c72dbcd65be67
commit 039c721a30392790be50dba53b4c72dbcd65be67
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Feb 21 18:02:24 2018 +0000
Fix -Os putc_unlocked, fputc_unlocked linknamespace, localplt issues (bug
15105, bug 19463).
Continuing the fixes for linknamespace and localplt test failures with
-Os that arise from functions not being inlined in that case, this
patch fixes such failures for putc_unlocked and fputc_unlocked.
libc_hidden_* are used for both functions, while namespace issues are
addressed by making putc_unlocked a weak alias of hidden
__putc_unlocked, which is called in the one place where namespace
issues arise (and defined as an inline function in include/stdio.h).
Tested for x86_64 (both without -Os to make sure that case continues
to work, and with -Os to make sure all the relevant linknamespace and
localplt test failures are resolved). This completes fixing the -Os
linknamespace failures (at least for x86_64); localplt failures remain
after this patch.
2018-02-19 Joseph Myers <joseph@codesourcery.com>
[BZ #15105]
[BZ #19463]
* libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
* libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
define as weak alias of __putc_unlocked. Use libc_hidden_weak.
* include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
libc_hidden_proto.
[!_ISOMAC] (putc_unlocked): Likewise.
[!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
define inline if [__USE_EXTERN_INLINES].
* misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
putc_unlocked.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 13 +++++++++++++
include/stdio.h | 9 +++++++++
libio/fputc_u.c | 1 +
libio/putc_u.c | 4 +++-
misc/syslog.c | 4 ++--
5 files changed, 28 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.