glibc/intl
Joseph Myers 7fc03cf320 Fix -Os feof_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 feof_unlocked.

The usual approach is followed of adding __feof_unlocked (inlined when
feof_unlocked is), making calls use it when required for namespace
reasons, and using libc_hidden_proto / libc_hidden_weak for the
feof_unlocked weak alias when only localplt but not namespace issues
are involved.  In the case of getaddrinfo.c, use of __feof_unlocked
needs to be conditional since that code is also used in nscd (where
__feof_unlocked is not available).

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).  Because of other such failures
that remain after this patch, neither of the bugs can yet be closed.

	[BZ #15105]
	[BZ #19463]
	* libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
	define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
	* include/stdio.h (feof_unlocked): Use libc_hidden_proto.
	(__feof_unlocked): New declaration, and inline function if
	[__USE_EXTERN_INLINES].
	* iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
	instead of feof_unlocked.
	* intl/localealias.c [_LIBC] (FEOF): Likewise.
	* nss/nsswitch.c (nss_parse_file): Likewise.
	* sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
	Likewise.
	* time/getdate.c (__getdate_r): Likewise.
	* sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
	Define as macro to call __feof_unlocked.
2018-02-15 20:57:15 +00:00
..
bindtextdom.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dcgettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dcigettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dcngettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Depend
dgettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
dngettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
eval-plural.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
explodename.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
finddomain.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gettextP.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gmo.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hash-string.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
hash-string.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
l10nflist.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libintl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
loadinfo.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
loadmsgcat.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
locale.alias Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
localealias.c Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-15 20:57:15 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ngettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
plural-exp.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
plural-exp.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
plural.y Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
po2test.awk Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
textdomain.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
translit.po
tst-codeset.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext2.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext4-de.po * sysdeps/i386/i686/memcmp.S: Move misplaced END. 2005-04-28 18:21:03 +00:00
tst-gettext4-fr.po * sysdeps/i386/i686/memcmp.S: Move misplaced END. 2005-04-28 18:21:03 +00:00
tst-gettext4.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext4.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext5.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext6.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext6.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-gettext.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-ngettext.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-translit.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-translit.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tstcodeset.po
tstlang1.po
tstlang2.po
Versions