aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/strrchr.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/strrchr.S')
-rw-r--r--sysdeps/alpha/strrchr.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/alpha/strrchr.S b/sysdeps/alpha/strrchr.S
index 464f754b20..02f37f50be 100644
--- a/sysdeps/alpha/strrchr.S
+++ b/sysdeps/alpha/strrchr.S
@@ -31,7 +31,14 @@ Cambridge, MA 02139, USA. */
.set noat
ENTRY(strrchr)
+#ifdef PROF
+ ldgp gp, 0(pv)
+ lda AT, _mcount
+ jsr AT, (AT), _mcount
+ .prologue 1
+#else
.prologue 0
+#endif
zapnot a1, 1, a1 # e0 : zero extend our test character
mov zero, t6 # .. e1 : t6 is last match aligned addr