Use libc_hidden_* for atoi (bug 15105).
commit20602c72fa54bc0923314820ec8148186096bf3b
authorJoseph Myers <joseph@codesourcery.com>
Mon, 26 Feb 2018 18:17:47 +0000 (26 18:17 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 26 Feb 2018 18:17:47 +0000 (26 18:17 +0000)
tree1f3f75293d510a9deac8cc7d4c29e70d34011804
parentf5f473a9d0e8fdbede858fa1ef0d01d12142367b
Use libc_hidden_* for atoi (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 atoi 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).

[BZ #15105]
* stdlib/atoi.c (atoi): Use libc_hidden_def.
* include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
ChangeLog
include/stdlib.h
stdlib/atoi.c