summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Clarke <pc@us.ibm.com>2019-01-15 12:42:58 -0600
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2019-01-16 12:18:58 -0200
commit008b598e2a495024f9777006716cfd8668f3db33 (patch)
tree8c1bbe535ed444b195a1b1e0d204354a2a48924d
parentfbbc9a4e347dabb2d1662744e6a2e83b569ea3a4 (diff)
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>
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strncmp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7cc7916a17..4c34d45a2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c
index ab7379d734..d2791ced07 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c
@@ -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