aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S18
-rw-r--r--sysdeps/powerpc/powerpc64/power8/strrchr.S8
2 files changed, 7 insertions, 19 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S
index 2b2b1de148..63080f5ecb 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 0ba61389a7..090eb96fa6 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)