From 20602c72fa54bc0923314820ec8148186096bf3b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 26 Feb 2018 18:17:47 +0000 Subject: 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. --- stdlib/atoi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stdlib') diff --git a/stdlib/atoi.c b/stdlib/atoi.c index a6c3f1d547..c42858494f 100644 --- a/stdlib/atoi.c +++ b/stdlib/atoi.c @@ -26,3 +26,4 @@ atoi (const char *nptr) { return (int) strtol (nptr, (char **) NULL, 10); } +libc_hidden_def (atoi) -- cgit 1.4.1