]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use libc_hidden_* for atoi (bug 15105).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 26 Feb 2018 18:17:47 +0000 (18:17 +0000)
committerFangrui Song <maskray@google.com>
Fri, 19 Nov 2021 21:20:26 +0000 (13:20 -0800)
commitc0a436544259c7aef8871c29731a48dc715039db
treef9c276b4640282c806433cc94e509873e8030a11
parent98fa83a2a8aa784388182af5a530072375713aed
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.

(cherry picked from commit 20602c72fa54bc0923314820ec8148186096bf3b)
include/stdlib.h
stdlib/atoi.c