mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
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.
This commit is contained in:
@@ -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>
|
2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
|
||||||
[BZ #22433]
|
[BZ #22433]
|
||||||
|
@@ -210,6 +210,8 @@ libc_hidden_proto (strtoll)
|
|||||||
libc_hidden_proto (strtoul)
|
libc_hidden_proto (strtoul)
|
||||||
libc_hidden_proto (strtoull)
|
libc_hidden_proto (strtoull)
|
||||||
|
|
||||||
|
libc_hidden_proto (atoi)
|
||||||
|
|
||||||
extern float __strtof_nan (const char *, char **, char);
|
extern float __strtof_nan (const char *, char **, char);
|
||||||
extern double __strtod_nan (const char *, char **, char);
|
extern double __strtod_nan (const char *, char **, char);
|
||||||
extern long double __strtold_nan (const char *, char **, char);
|
extern long double __strtold_nan (const char *, char **, char);
|
||||||
|
@@ -26,3 +26,4 @@ atoi (const char *nptr)
|
|||||||
{
|
{
|
||||||
return (int) strtol (nptr, (char **) NULL, 10);
|
return (int) strtol (nptr, (char **) NULL, 10);
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (atoi)
|
||||||
|
Reference in New Issue
Block a user