about summary refs log tree commit diff
path: root/sysdeps/unix/alpha/sysdep.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-12 19:29:11 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-12 19:29:11 +0000
commitaddb5f3176382693f987f0f44f3708f610d2e984 (patch)
tree7c1f62aba569850e1e15199b3e51573cf4759aeb /sysdeps/unix/alpha/sysdep.S
parent76426e0247ecd09c574ac124d8c0329d3d6d0ff7 (diff)
downloadglibc-addb5f3176382693f987f0f44f3708f610d2e984.tar.gz
glibc-addb5f3176382693f987f0f44f3708f610d2e984.tar.xz
glibc-addb5f3176382693f987f0f44f3708f610d2e984.zip
Update.
2002-01-09  Richard Henderson  <rth@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Assume only
	ret follows pseudo, and thus avoid branch-to-branch in cancel
	case.  Use SYSCALL_ERROR_LABEL.
Diffstat (limited to 'sysdeps/unix/alpha/sysdep.S')
-rw-r--r--sysdeps/unix/alpha/sysdep.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/unix/alpha/sysdep.S b/sysdeps/unix/alpha/sysdep.S
index 4c7c134333..c31508bc30 100644
--- a/sysdeps/unix/alpha/sysdep.S
+++ b/sysdeps/unix/alpha/sysdep.S
@@ -47,11 +47,17 @@ __syscall_error:
 
 #if defined(_LIBC_REENTRANT) && USE___THREAD
 
+#ifndef NOT_IN_libc
+# define SYSCALL_ERROR_ERRNO __libc_errno
+#else
+# define SYSCALL_ERROR_ERRNO errno
+#endif
+
 	LOADGP
 	PROLOGUE
 	mov	v0, t0
 	call_pal PAL_rduniq
-	ldq	t1, __libc_errno(gp) !gottprel
+	ldq	t1, SYSCALL_ERROR_ERRNO(gp) !gottprel
 	addq	v0, t1, v0
 	stl	t0, 0(v0)
 	lda	v0, -1