[PATCH] powerpc: Fix strncat ifunc selection
Rajalakshmi Srinivasaraghavan
raji@linux.vnet.ibm.com
Wed May 3 09:50:00 GMT 2017
Correct hwcap usage in strncat introduced by commit
249dcdb71b79e4c488a46c9027e0014c0bc27044.
Tested on power7 and power8 systems.
2017-05-03 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
* sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
variable name.
---
sysdeps/powerpc/powerpc64/multiarch/strncat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncat.c b/sysdeps/powerpc/powerpc64/multiarch/strncat.c
index ba3fe5c..72f2833 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strncat.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/strncat.c
@@ -26,7 +26,7 @@ extern __typeof (strncat) __strncat_power7 attribute_hidden;
extern __typeof (strncat) __strncat_power8 attribute_hidden;
libc_ifunc (strncat,
- (hwcap & PPC_FEATURE2_ARCH_2_07)
+ (hwcap2 & PPC_FEATURE2_ARCH_2_07)
? __strncat_power8
: (hwcap & PPC_FEATURE_HAS_VSX)
? __strncat_power7
--
2.7.4
More information about the Libc-alpha
mailing list