powerpc: Fix tiny bug in strncmp.c

A single underscore was omitted in
sysdeps/powerpc/powerpc64/multiarch/strncmp.c, resulting in use of
power8 version of strncmp instead of power9 version, with significant
performance degradation.

	* sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
This commit is contained in:
Paul Clarke 2019-01-15 12:42:58 -06:00 committed by Tulio Magno Quites Machado Filho
parent fbbc9a4e34
commit 008b598e2a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-01-16 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2019-01-16 Zack Weinberg <zackw@panix.com>
* support/xsignal.h (xalloc_sigstack, xfree_sigstack)

View File

@ -37,7 +37,7 @@ extern __typeof (strncmp) __strncmp_power9 attribute_hidden;
/* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle
ifunc symbol properly. */
libc_ifunc_redirected (__redirect_strncmp, strncmp,
# ifdef __LITTLE_ENDIAN_
# ifdef __LITTLE_ENDIAN__
(hwcap2 & PPC_FEATURE2_ARCH_3_00)
? __strncmp_power9 :
# endif