about summary refs log tree commit diff
path: root/sysdeps/alpha/bsd-setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/bsd-setjmp.S')
-rw-r--r--sysdeps/alpha/bsd-setjmp.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/alpha/bsd-setjmp.S b/sysdeps/alpha/bsd-setjmp.S
index c0ed691f40..2b799613d7 100644
--- a/sysdeps/alpha/bsd-setjmp.S
+++ b/sysdeps/alpha/bsd-setjmp.S
@@ -25,6 +25,10 @@ Cambridge, MA 02139, USA.  */
 
 ENTRY(setjmp)
 	ldgp	$29, 0($27)
+#ifdef PROF
+	lda	AT, _mcount
+	jsr	AT, (AT), _mcount
+#endif
 	.prologue 1
 	bis	$31, 1, $17		/* Pass a second argument of one.  */
 	jmp	$31, __sigsetjmp	/* Call __sigsetjmp.  */