* [PATCH] Apply i386/sysdep.h change to x86_64/sysdep.h too
@ 2002-10-16 15:10 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2002-10-16 15:10 UTC (permalink / raw)
To: Roland McGrath, Ulrich Drepper; +Cc: Glibc hackers
Hi!
I think x86_64/sysdep.h should stay in sync.
2002-10-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
Use __libc_errno only for libc itself.
--- libc/sysdeps/unix/sysv/linux/x86_64/sysdep.h.jj 2002-10-16 23:10:03.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/x86_64/sysdep.h 2002-10-16 23:11:07.000000000 +0200
@@ -93,9 +93,14 @@
orq $-1, %rax; \
jmp L(pseudo_end);
#elif USE___THREAD
+# ifndef NOT_IN_libc
+# define SYSCALL_ERROR_ERRNO __libc_errno
+# else
+# define SYSCALL_ERROR_ERRNO errno
+# endif
# define SYSCALL_ERROR_HANDLER \
0: \
- movq __libc_errno@GOTTPOFF(%rip), %rcx; \
+ movq SYSCALL_ERROR_ERRNO@GOTTPOFF(%rip), %rcx;\
xorq %rdx, %rdx; \
subq %rax, %rdx; \
movl %edx, %fs:(%rcx); \
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-16 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 15:10 [PATCH] Apply i386/sysdep.h change to x86_64/sysdep.h too Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).