This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-566-g12f5033
- From: raji at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 23 Jun 2017 05:56:33 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-566-g12f5033
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 12f50337ae80672c393c2317d471d097ad92c492 (commit)
from 001b09a6a2176b22bd7524a8329950c1ef98f06f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=12f50337ae80672c393c2317d471d097ad92c492
commit 12f50337ae80672c393c2317d471d097ad92c492
Author: Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Date: Fri Jun 23 11:24:30 2017 +0530
powerpc: refactor strrchr IFUNC
As done in commit 6d15a5c2e9450a1e926d5b4991759e1cfa50fccf
clean up IFUNC implementation for power8 in order to remove
unneeded macro definitions.
diff --git a/ChangeLog b/ChangeLog
index ed0192b..e495f4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2017-06-23 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
+ * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S(STRRCHR): Define
+ the implementation-specific function name and remove unneeded macros
+ definition.
+ * sysdeps/powerpc/powerpc64/power8/strrchr.S(STRRCHR): Set a default
+ function name if not defined and pass as parameter to macros
+ accordingly.
+
+2017-06-23 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
+
* sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
(libm-sysdep_routines): Add s_llroundf-ppc64.
* sysdeps/powerpc/powerpc64/power5+fpu/s_llround.S
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S
index 2b2b1de..63080f5 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S
+++ b/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S
@@ -18,23 +18,7 @@
#include <sysdep.h>
-#undef ENTRY_TOCLESS
-#ifndef PROF
-#define ENTRY_TOCLESS(name, ...) \
- ENTRY_3 __strrchr_power8, ## __VA_ARGS__; \
- cfi_startproc
-#else
-#define ENTRY_TOCLESS(name, ...) \
- ENTRY_3 __strrchr_power8, ## __VA_ARGS__; \
- cfi_startproc; \
- LOCALENTRY(__strrchr_power8)
-#endif
-
-#undef END
-#define END(name) \
- cfi_endproc; \
- TRACEBACK(__strrchr_power8); \
- END_2(__strrchr_power8)
+#define STRRCHR __strrchr_power8
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name)
diff --git a/sysdeps/powerpc/powerpc64/power8/strrchr.S b/sysdeps/powerpc/powerpc64/power8/strrchr.S
index 0ba6138..090eb96 100644
--- a/sysdeps/powerpc/powerpc64/power8/strrchr.S
+++ b/sysdeps/powerpc/powerpc64/power8/strrchr.S
@@ -76,8 +76,12 @@
1: \
vsumsws v2, v2, v0;
#endif /* !__LITTLE_ENDIAN__ */
+
+#ifndef STRRCHR
+# define STRRCHR strrchr
+#endif
.machine power7
-ENTRY_TOCLESS (strrchr)
+ENTRY_TOCLESS (STRRCHR)
CALL_MCOUNT 2
dcbt 0,r3
clrrdi r8,r3,3 /* Align the address to doubleword boundary. */
@@ -459,6 +463,6 @@ L(continue1):
#endif
add r3, r3, r6 /* Compute final length. */
blr
-END (strrchr)
+END_GEN_TB (STRRCHR, TB_TOCLESS)
weak_alias (strrchr, rindex)
libc_hidden_builtin_def (strrchr)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 9 +++++++++
.../powerpc/powerpc64/multiarch/strrchr-power8.S | 18 +-----------------
sysdeps/powerpc/powerpc64/power8/strrchr.S | 8 ++++++--
3 files changed, 16 insertions(+), 19 deletions(-)
hooks/post-receive
--
GNU C Library master sources