|
|
bdc76f |
commit 80190d2b0e3f48d973724218f37d2da5bf1a20ab
|
|
|
bdc76f |
Author: Stefan Liebler <stli@linux.ibm.com>
|
|
|
bdc76f |
Date: Tue Dec 18 13:57:25 2018 +0100
|
|
|
bdc76f |
|
|
|
bdc76f |
S390: Cleanup ifunc-resolve.h.
|
|
|
bdc76f |
|
|
|
bdc76f |
The ifunc macros s390_vx_libc* are no longer used and
|
|
|
bdc76f |
can be removed as all users are now relying on
|
|
|
bdc76f |
s390_libc_ifunc_expr.
|
|
|
bdc76f |
|
|
|
bdc76f |
The same applies to s390_libc_ifunc. The macro
|
|
|
bdc76f |
s390_libc_ifunc_init is now renamed to
|
|
|
bdc76f |
s390_libc_ifunc_expr_stfle_init and the users are
|
|
|
bdc76f |
adjusted accordingly.
|
|
|
bdc76f |
|
|
|
bdc76f |
ChangeLog:
|
|
|
bdc76f |
|
|
|
bdc76f |
* sysdeps/s390/multiarch/ifunc-resolve.h
|
|
|
bdc76f |
(s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
|
|
|
bdc76f |
s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
|
|
|
bdc76f |
s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
|
|
|
bdc76f |
Delete macro definition.
|
|
|
bdc76f |
(s390_libc_ifunc_init): Rename to
|
|
|
bdc76f |
s390_libc_ifunc_expr_stfle_init.
|
|
|
bdc76f |
* sysdeps/s390/bzero: Use
|
|
|
bdc76f |
s390_libc_ifunc_expr_stfle_init instead of
|
|
|
bdc76f |
s390_libc_ifunc_init.
|
|
|
bdc76f |
* sysdeps/s390/memcmp.c: Likewise.
|
|
|
bdc76f |
* sysdeps/s390/memcpy.c: Likewise.
|
|
|
bdc76f |
* sysdeps/s390/mempcpy.c: Likewise.
|
|
|
bdc76f |
* sysdeps/s390/memset.c: Likewise.
|
|
|
bdc76f |
|
|
|
bdc76f |
diff --git a/sysdeps/s390/bzero.c b/sysdeps/s390/bzero.c
|
|
|
bdc76f |
index 9f8d95781bf2fb68..6b5d471c40250543 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/bzero.c
|
|
|
bdc76f |
+++ b/sysdeps/s390/bzero.c
|
|
|
bdc76f |
@@ -35,7 +35,7 @@ extern __typeof (__bzero) BZERO_Z196 attribute_hidden;
|
|
|
bdc76f |
|
|
|
bdc76f |
s390_libc_ifunc_expr (__bzero, __bzero,
|
|
|
bdc76f |
({
|
|
|
bdc76f |
- s390_libc_ifunc_init ();
|
|
|
bdc76f |
+ s390_libc_ifunc_expr_stfle_init ();
|
|
|
bdc76f |
(HAVE_MEMSET_Z196 && S390_IS_Z196 (stfle_bits))
|
|
|
bdc76f |
? BZERO_Z196
|
|
|
bdc76f |
: (HAVE_MEMSET_Z10 && S390_IS_Z10 (stfle_bits))
|
|
|
bdc76f |
diff --git a/sysdeps/s390/memcmp.c b/sysdeps/s390/memcmp.c
|
|
|
bdc76f |
index 952ff6af7364fd92..6d9276320abbe332 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/memcmp.c
|
|
|
bdc76f |
+++ b/sysdeps/s390/memcmp.c
|
|
|
bdc76f |
@@ -37,7 +37,7 @@ extern __typeof (__redirect_memcmp) MEMCMP_Z196 attribute_hidden;
|
|
|
bdc76f |
|
|
|
bdc76f |
s390_libc_ifunc_expr (__redirect_memcmp, memcmp,
|
|
|
bdc76f |
({
|
|
|
bdc76f |
- s390_libc_ifunc_init ();
|
|
|
bdc76f |
+ s390_libc_ifunc_expr_stfle_init ();
|
|
|
bdc76f |
(HAVE_MEMCMP_Z196 && S390_IS_Z196 (stfle_bits))
|
|
|
bdc76f |
? MEMCMP_Z196
|
|
|
bdc76f |
: (HAVE_MEMCMP_Z10 && S390_IS_Z10 (stfle_bits))
|
|
|
bdc76f |
diff --git a/sysdeps/s390/memcpy.c b/sysdeps/s390/memcpy.c
|
|
|
bdc76f |
index 90a53ac27d4be755..0ff24f18cf3600da 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/memcpy.c
|
|
|
bdc76f |
+++ b/sysdeps/s390/memcpy.c
|
|
|
bdc76f |
@@ -38,7 +38,7 @@ extern __typeof (__redirect_memcpy) MEMCPY_Z196 attribute_hidden;
|
|
|
bdc76f |
|
|
|
bdc76f |
s390_libc_ifunc_expr (__redirect_memcpy, memcpy,
|
|
|
bdc76f |
({
|
|
|
bdc76f |
- s390_libc_ifunc_init ();
|
|
|
bdc76f |
+ s390_libc_ifunc_expr_stfle_init ();
|
|
|
bdc76f |
(HAVE_MEMCPY_Z196 && S390_IS_Z196 (stfle_bits))
|
|
|
bdc76f |
? MEMCPY_Z196
|
|
|
bdc76f |
: (HAVE_MEMCPY_Z10 && S390_IS_Z10 (stfle_bits))
|
|
|
bdc76f |
diff --git a/sysdeps/s390/mempcpy.c b/sysdeps/s390/mempcpy.c
|
|
|
bdc76f |
index a6a237312659c2c1..b687b3362034bfb0 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/mempcpy.c
|
|
|
bdc76f |
+++ b/sysdeps/s390/mempcpy.c
|
|
|
bdc76f |
@@ -42,7 +42,7 @@ extern __typeof (__redirect___mempcpy) MEMPCPY_Z196 attribute_hidden;
|
|
|
bdc76f |
|
|
|
bdc76f |
s390_libc_ifunc_expr (__redirect___mempcpy, __mempcpy,
|
|
|
bdc76f |
({
|
|
|
bdc76f |
- s390_libc_ifunc_init ();
|
|
|
bdc76f |
+ s390_libc_ifunc_expr_stfle_init ();
|
|
|
bdc76f |
(HAVE_MEMCPY_Z196 && S390_IS_Z196 (stfle_bits))
|
|
|
bdc76f |
? MEMPCPY_Z196
|
|
|
bdc76f |
: (HAVE_MEMCPY_Z10 && S390_IS_Z10 (stfle_bits))
|
|
|
bdc76f |
diff --git a/sysdeps/s390/memset.c b/sysdeps/s390/memset.c
|
|
|
bdc76f |
index 57a35aebc7d3c794..75b011f1a24f39bc 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/memset.c
|
|
|
bdc76f |
+++ b/sysdeps/s390/memset.c
|
|
|
bdc76f |
@@ -37,7 +37,7 @@ extern __typeof (__redirect_memset) MEMSET_Z196 attribute_hidden;
|
|
|
bdc76f |
|
|
|
bdc76f |
s390_libc_ifunc_expr (__redirect_memset, memset,
|
|
|
bdc76f |
({
|
|
|
bdc76f |
- s390_libc_ifunc_init ();
|
|
|
bdc76f |
+ s390_libc_ifunc_expr_stfle_init ();
|
|
|
bdc76f |
(HAVE_MEMSET_Z196 && S390_IS_Z196 (stfle_bits))
|
|
|
bdc76f |
? MEMSET_Z196
|
|
|
bdc76f |
: (HAVE_MEMSET_Z10 && S390_IS_Z10 (stfle_bits))
|
|
|
bdc76f |
diff --git a/sysdeps/s390/multiarch/ifunc-resolve.h b/sysdeps/s390/multiarch/ifunc-resolve.h
|
|
|
bdc76f |
index b7e20abc59638251..b2be015401313d4b 100644
|
|
|
bdc76f |
--- a/sysdeps/s390/multiarch/ifunc-resolve.h
|
|
|
bdc76f |
+++ b/sysdeps/s390/multiarch/ifunc-resolve.h
|
|
|
bdc76f |
@@ -40,7 +40,7 @@
|
|
|
bdc76f |
".machine pop" "\n" \
|
|
|
bdc76f |
: "=QS" (STFLE_BITS), "+d" (reg0) \
|
|
|
bdc76f |
: : "cc");
|
|
|
bdc76f |
-#define s390_libc_ifunc_init() \
|
|
|
bdc76f |
+#define s390_libc_ifunc_expr_stfle_init() \
|
|
|
bdc76f |
unsigned long long stfle_bits = 0ULL; \
|
|
|
bdc76f |
if (__glibc_likely ((hwcap & HWCAP_S390_STFLE) \
|
|
|
bdc76f |
&& (hwcap & HWCAP_S390_ZARCH) \
|
|
|
bdc76f |
@@ -49,41 +49,6 @@
|
|
|
bdc76f |
S390_STORE_STFLE (stfle_bits); \
|
|
|
bdc76f |
}
|
|
|
bdc76f |
|
|
|
bdc76f |
-#define s390_libc_ifunc(TYPE_FUNC, RESOLVERFUNC, FUNC) \
|
|
|
bdc76f |
- /* Make the declarations of the optimized functions hidden in order
|
|
|
bdc76f |
- to prevent GOT slots being generated for them. */ \
|
|
|
bdc76f |
- extern __typeof (TYPE_FUNC) RESOLVERFUNC##_z196 attribute_hidden; \
|
|
|
bdc76f |
- extern __typeof (TYPE_FUNC) RESOLVERFUNC##_z10 attribute_hidden; \
|
|
|
bdc76f |
- extern __typeof (TYPE_FUNC) RESOLVERFUNC##_default attribute_hidden; \
|
|
|
bdc76f |
- __ifunc (TYPE_FUNC, FUNC, \
|
|
|
bdc76f |
- __glibc_likely (S390_IS_Z196 (stfle_bits)) \
|
|
|
bdc76f |
- ? RESOLVERFUNC##_z196 \
|
|
|
bdc76f |
- : __glibc_likely (S390_IS_Z10 (stfle_bits)) \
|
|
|
bdc76f |
- ? RESOLVERFUNC##_z10 \
|
|
|
bdc76f |
- : RESOLVERFUNC##_default, \
|
|
|
bdc76f |
- unsigned long int hwcap, s390_libc_ifunc_init);
|
|
|
bdc76f |
-
|
|
|
bdc76f |
-#define s390_vx_libc_ifunc(FUNC) \
|
|
|
bdc76f |
- s390_vx_libc_ifunc2_redirected(FUNC, FUNC, FUNC)
|
|
|
bdc76f |
-
|
|
|
bdc76f |
-#define s390_vx_libc_ifunc_redirected(TYPE_FUNC, FUNC) \
|
|
|
bdc76f |
- s390_vx_libc_ifunc2_redirected(TYPE_FUNC, FUNC, FUNC)
|
|
|
bdc76f |
-
|
|
|
bdc76f |
-#define s390_vx_libc_ifunc2(RESOLVERFUNC, FUNC) \
|
|
|
bdc76f |
- s390_vx_libc_ifunc2_redirected(FUNC, RESOLVERFUNC, FUNC)
|
|
|
bdc76f |
-
|
|
|
bdc76f |
-#define s390_vx_libc_ifunc_init()
|
|
|
bdc76f |
-#define s390_vx_libc_ifunc2_redirected(TYPE_FUNC, RESOLVERFUNC, FUNC) \
|
|
|
bdc76f |
- /* Make the declarations of the optimized functions hidden in order
|
|
|
bdc76f |
- to prevent GOT slots being generated for them. */ \
|
|
|
bdc76f |
- extern __typeof (TYPE_FUNC) RESOLVERFUNC##_vx attribute_hidden; \
|
|
|
bdc76f |
- extern __typeof (TYPE_FUNC) RESOLVERFUNC##_c attribute_hidden; \
|
|
|
bdc76f |
- __ifunc (TYPE_FUNC, FUNC, \
|
|
|
bdc76f |
- (hwcap & HWCAP_S390_VX) \
|
|
|
bdc76f |
- ? RESOLVERFUNC##_vx \
|
|
|
bdc76f |
- : RESOLVERFUNC##_c, \
|
|
|
bdc76f |
- unsigned long int hwcap, s390_vx_libc_ifunc_init);
|
|
|
bdc76f |
-
|
|
|
bdc76f |
#define s390_libc_ifunc_expr_init()
|
|
|
bdc76f |
#define s390_libc_ifunc_expr(TYPE_FUNC, FUNC, EXPR) \
|
|
|
bdc76f |
__ifunc (TYPE_FUNC, FUNC, EXPR, unsigned long int hwcap, \
|