diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-02-23 13:54:53 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-02-23 13:54:53 +0000 |
commit | 54412d20618b7b93f136a168e788573575f8a7a6 (patch) | |
tree | 9a70dd6ad24b576c41423d9c407005cca35d40c1 /ctype | |
parent | Remove --quiet argument when installing locales (diff) | |
download | glibc-54412d20618b7b93f136a168e788573575f8a7a6.tar.gz glibc-54412d20618b7b93f136a168e788573575f8a7a6.tar.bz2 glibc-54412d20618b7b93f136a168e788573575f8a7a6.zip |
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.
Diffstat (limited to 'ctype')
-rw-r--r-- | ctype/ctype.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctype/ctype.c b/ctype/ctype.c index e86c5b03c7..6cb8000771 100644 --- a/ctype/ctype.c +++ b/ctype/ctype.c @@ -45,9 +45,11 @@ tolower (int c) { return c >= -128 && c < 256 ? __ctype_tolower[c] : c; } +libc_hidden_def (tolower) int toupper (int c) { return c >= -128 && c < 256 ? __ctype_toupper[c] : c; } +libc_hidden_def (toupper) |