diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-22 05:34:36 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-22 05:34:36 -0700 |
commit | 0e44a77e481e18b56ef5bd2354fc97a267487551 (patch) | |
tree | 757d36a8ea239514e64dad61907846f24e2903bf /sysdeps | |
parent | 5e1a27a96de16ad0cd67a81e25741790b32e2c25 (diff) | |
download | glibc-0e44a77e481e18b56ef5bd2354fc97a267487551.tar.gz glibc-0e44a77e481e18b56ef5bd2354fc97a267487551.tar.xz glibc-0e44a77e481e18b56ef5bd2354fc97a267487551.zip |
Use "neg %eax" in x86_64 SYSCALL_SET_ERRNO
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/sysdep.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h index 3f5bdd2ac3..396345e8b7 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h +++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h @@ -115,9 +115,8 @@ # if defined PIC && defined RTLD_PRIVATE_ERRNO # define SYSCALL_SET_ERRNO \ lea rtld_errno(%rip), %RCX_LP; \ - xorl %edx, %edx; \ - sub %RAX_LP, %RDX_LP; \ - movl %edx, (%rcx) + neg %eax; \ + movl %eax, (%rcx) # else # ifndef NOT_IN_libc # define SYSCALL_ERROR_ERRNO __libc_errno @@ -126,9 +125,8 @@ # endif # define SYSCALL_SET_ERRNO \ movq SYSCALL_ERROR_ERRNO@GOTTPOFF(%rip), %rcx;\ - xorl %edx, %edx; \ - sub %RAX_LP, %RDX_LP; \ - movl %edx, %fs:(%rcx) + neg %eax; \ + movl %eax, %fs:(%rcx); # endif # ifndef PIC |