From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1726 invoked by alias); 16 Oct 2002 21:02:57 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 1704 invoked from network); 16 Oct 2002 21:02:55 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 16 Oct 2002 21:02:55 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g9GL2qF18499; Wed, 16 Oct 2002 23:02:52 +0200 Date: Wed, 16 Oct 2002 15:10:00 -0000 From: Jakub Jelinek To: Roland McGrath , Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Apply i386/sysdep.h change to x86_64/sysdep.h too Message-ID: <20021016230251.Q3451@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-10/txt/msg00063.txt.bz2 Hi! I think x86_64/sysdep.h should stay in sync. 2002-10-16 Jakub Jelinek * 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