]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use libc_hidden_* for tolower, toupper (bug 15105).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 23 Feb 2018 13:54:53 +0000 (13:54 +0000)
committerFangrui Song <maskray@google.com>
Fri, 19 Nov 2021 21:20:26 +0000 (13:20 -0800)
commit98fa83a2a8aa784388182af5a530072375713aed
tree1bf2b84e0699c86f34c53d4ea9aeca601975fdfe
parentbf291348a7a7e2e86784e411ec5c18f221690038
Use libc_hidden_* for tolower, toupper (bug 15105).

Continuing the fixes for localplt test failures with -Os arising from
functions not being inlined in that case, this patch fixes such
failures for tolower and toupper by using libc_hidden_proto and
libc_hidden_def.

Tested for x86_64 (both that it removes this particular localplt
failure for -Os, and that the testsuite continues to pass without
-Os).

2018-02-22  Joseph Myers  <joseph@codesourcery.com>

[BZ #15105]
* ctype/ctype.c (tolower): Use libc_hidden_def.
(toupper): Likewise.
* include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
[!_ISOMAC] (toupper): Likewise.

(cherry picked from commit 54412d20618b7b93f136a168e788573575f8a7a6)
ctype/ctype.c
include/ctype.h