[glibc/maskray/clang] x86: fix __arch_exchange_and_add_body

Fangrui Song maskray@sourceware.org
Sun Oct 10 23:12:55 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4103ffe6e6d58474bbd5487738a7794603c91843

commit 4103ffe6e6d58474bbd5487738a7794603c91843
Author: Fangrui Song <maskray@google.com>
Date:   Sun Sep 26 00:10:51 2021 -0700

    x86: fix __arch_exchange_and_add_body

Diff:
---
 sysdeps/x86/atomic-machine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h
index 695222e4fa..803c70e74c 100644
--- a/sysdeps/x86/atomic-machine.h
+++ b/sysdeps/x86/atomic-machine.h
@@ -218,7 +218,7 @@ typedef uintmax_t uatomic_max_t;
      else if (__HAVE_64B_ATOMICS)					      \
        __asm __volatile (lock "xaddq %q0, %1"				      \
 			 : "=r" (__result), "=m" (*mem)			      \
-			 : "0" ((atomic64_t) cast_to_integer (__addval)),     \
+			 : "0" (cast_to_integer (__addval)),     \
 			   "m" (*mem),					      \
 			   "i" (offsetof (tcbhead_t, multiple_threads)));     \
      else								      \


More information about the Glibc-cvs mailing list