]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use libc_hidden_* for atoi (bug 15105).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 26 Feb 2018 18:17:47 +0000 (18:17 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 26 Feb 2018 18:17:47 +0000 (18:17 +0000)
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

index db0b451a20018aa157f72ada477270c6813d61b0..f7e7204c4f7b5da8210840a6099a7c49747a6e5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-26  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #15105]
+       * stdlib/atoi.c (atoi): Use libc_hidden_def.
+       * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
+
 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
 
        [BZ #22433]
index 5974fb3d24b1f3dc75d3fd5c4b502675acaa683c..114e12d25597767675f0be53d3fb26206029d4a9 100644 (file)
@@ -210,6 +210,8 @@ libc_hidden_proto (strtoll)
 libc_hidden_proto (strtoul)
 libc_hidden_proto (strtoull)
 
+libc_hidden_proto (atoi)
+
 extern float __strtof_nan (const char *, char **, char);
 extern double __strtod_nan (const char *, char **, char);
 extern long double __strtold_nan (const char *, char **, char);
index a6c3f1d54757f9a60c810ae8b605221c55841d1e..c42858494fab5aeef53b0a76990b8c95bd2fafb1 100644 (file)
@@ -26,3 +26,4 @@ atoi (const char *nptr)
 {
   return (int) strtol (nptr, (char **) NULL, 10);
 }
+libc_hidden_def (atoi)