mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Mark ____wcsto*_l_internal functions with attribute_hidden [BZ #18822]
Mark ____wcsto*_l_internal functions with attribute_hidden to allow direct access to them within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/wchar.h (____wcstof_l_internal): New prototype. (____wcstod_l_internal): Likewise. (____wcstold_l_internal): Likewise. (____wcstol_l_internal): Likewise. (____wcstoul_l_internal): Likewise. (____wcstoll_l_internal): Likewise. (____wcstoull_l_internal): Likewise. (____wcstof128_l_internal): Likewise. * sysdeps/ieee754/float128/wcstof128.c (____wcstof128_l_internal): Removed. * sysdeps/ieee754/float128/wcstof128_l.c (____wcstof128_l_internal): Likewise. * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise. * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise. * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise. * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise. * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise. * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise. * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise. * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise. * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise. * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
This commit is contained in:
parent
3aff56444e
commit
c26dd7c600
26
ChangeLog
26
ChangeLog
@ -1,3 +1,29 @@
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
* include/wchar.h (____wcstof_l_internal): New prototype.
|
||||
(____wcstod_l_internal): Likewise.
|
||||
(____wcstold_l_internal): Likewise.
|
||||
(____wcstol_l_internal): Likewise.
|
||||
(____wcstoul_l_internal): Likewise.
|
||||
(____wcstoll_l_internal): Likewise.
|
||||
(____wcstoull_l_internal): Likewise.
|
||||
(____wcstof128_l_internal): Likewise.
|
||||
* sysdeps/ieee754/float128/wcstof128.c
|
||||
(____wcstof128_l_internal): Removed.
|
||||
* sysdeps/ieee754/float128/wcstof128_l.c
|
||||
(____wcstof128_l_internal): Likewise.
|
||||
* wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
|
||||
* wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
|
||||
* wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
|
||||
* wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
|
||||
* wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
|
||||
* wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
|
||||
* wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
|
||||
* wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
|
||||
* wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
|
||||
* wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
|
||||
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
|
@ -70,6 +70,26 @@ libc_hidden_proto (wcstoll)
|
||||
libc_hidden_proto (wcstoul)
|
||||
libc_hidden_proto (wcstoull)
|
||||
|
||||
extern float ____wcstof_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t) attribute_hidden;
|
||||
extern double ____wcstod_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t) attribute_hidden;
|
||||
extern long double ____wcstold_l_internal (const wchar_t *, wchar_t **,
|
||||
int, locale_t) attribute_hidden;
|
||||
extern long int ____wcstol_l_internal (const wchar_t *, wchar_t **, int,
|
||||
int, locale_t) attribute_hidden;
|
||||
extern unsigned long int ____wcstoul_l_internal (const wchar_t *,
|
||||
wchar_t **,
|
||||
int, int, locale_t)
|
||||
attribute_hidden;
|
||||
extern long long int ____wcstoll_l_internal (const wchar_t *, wchar_t **,
|
||||
int, int, locale_t)
|
||||
attribute_hidden;
|
||||
extern unsigned long long int ____wcstoull_l_internal (const wchar_t *,
|
||||
wchar_t **, int, int,
|
||||
locale_t)
|
||||
attribute_hidden;
|
||||
|
||||
#if __HAVE_DISTINCT_FLOAT128
|
||||
extern __typeof (wcstof128_l) __wcstof128_l;
|
||||
libc_hidden_proto (__wcstof128_l)
|
||||
@ -77,6 +97,9 @@ extern _Float128 __wcstof128_internal (const wchar_t *__restrict __nptr,
|
||||
wchar_t **__restrict __endptr,
|
||||
int __group) __THROW;
|
||||
|
||||
extern _Float128 ____wcstof128_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t) attribute_hidden;
|
||||
|
||||
libc_hidden_proto (__wcstof128_internal)
|
||||
libc_hidden_proto (wcstof128)
|
||||
#endif
|
||||
|
@ -24,7 +24,4 @@
|
||||
/* Bring in _Float128 typedef if needed. */
|
||||
#include <bits/floatn.h>
|
||||
|
||||
extern _Float128 ____wcstof128_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include "strtof128.c"
|
||||
|
@ -24,7 +24,4 @@
|
||||
|
||||
#include <bits/floatn.h>
|
||||
|
||||
extern _Float128 ____wcstof128_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include "strtof128_l.c"
|
||||
|
@ -22,7 +22,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern double ____wcstod_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include <stdlib/strtod.c>
|
||||
|
@ -21,9 +21,6 @@
|
||||
#include <locale.h>
|
||||
|
||||
|
||||
extern double ____wcstod_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
#include <stdlib/strtod_l.c>
|
||||
|
@ -21,7 +21,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern float ____wcstof_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include <stdlib/strtof.c>
|
||||
|
@ -23,7 +23,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern float ____wcstof_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include <stdlib/strtof_l.c>
|
||||
|
@ -23,7 +23,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern long int ____wcstol_l_internal (const wchar_t *, wchar_t **, int, int,
|
||||
locale_t);
|
||||
|
||||
#include <stdlib/strtol_l.c>
|
||||
|
@ -21,7 +21,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern long double ____wcstold_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include <stdlib/strtold.c>
|
||||
|
@ -22,7 +22,4 @@
|
||||
|
||||
#define USE_WIDE_CHAR 1
|
||||
|
||||
extern long double ____wcstold_l_internal (const wchar_t *, wchar_t **, int,
|
||||
locale_t);
|
||||
|
||||
#include <strtold_l.c>
|
||||
|
@ -23,7 +23,4 @@
|
||||
|
||||
#define QUAD 1
|
||||
|
||||
extern long long int ____wcstoll_l_internal (const wchar_t *, wchar_t **,
|
||||
int, int, locale_t);
|
||||
|
||||
#include <wcstol_l.c>
|
||||
|
@ -23,7 +23,4 @@
|
||||
|
||||
#define UNSIGNED 1
|
||||
|
||||
extern unsigned long int ____wcstoul_l_internal (const wchar_t *, wchar_t **,
|
||||
int, int, locale_t);
|
||||
|
||||
#include "wcstol_l.c"
|
||||
|
@ -23,8 +23,4 @@
|
||||
|
||||
#define UNSIGNED 1
|
||||
|
||||
extern unsigned long long int ____wcstoull_l_internal (const wchar_t *,
|
||||
wchar_t **, int, int,
|
||||
locale_t);
|
||||
|
||||
#include <wcstoll_l.c>
|
||||
|
Loading…
Reference in New Issue
Block a user