From f8a2202542236dc1e4ea012c528b79496f2aad56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Dehenne?= Date: Fri, 1 Mar 2024 10:47:29 +0100 Subject: [PATCH] Fix clang++ compilation error in C++11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add spaces between literal and identifiers in assembly instructions in opa_gcc_intel_32_64_ops.h. Signed-off-by: RĂ©mi Dehenne --- src/primitives/opa_gcc_intel_32_64_ops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/primitives/opa_gcc_intel_32_64_ops.h b/src/primitives/opa_gcc_intel_32_64_ops.h index 6482c19..f44d323 100644 --- a/src/primitives/opa_gcc_intel_32_64_ops.h +++ b/src/primitives/opa_gcc_intel_32_64_ops.h @@ -90,7 +90,7 @@ static _opa_inline void OPA_store_release_ptr(OPA_ptr_t *ptr, void *val) static _opa_inline void OPA_add_int(OPA_int_t *ptr, int val) { - __asm__ __volatile__ ("lock ; add"OPA_SS" %1,%0" + __asm__ __volatile__ ("lock ; add" OPA_SS " %1,%0" :"=m" (ptr->v) :"ir" (val), "m" (ptr->v)); return; @@ -98,7 +98,7 @@ static _opa_inline void OPA_add_int(OPA_int_t *ptr, int val) static _opa_inline void OPA_incr_int(OPA_int_t *ptr) { - __asm__ __volatile__ ("lock ; inc"OPA_SS" %0" + __asm__ __volatile__ ("lock ; inc" OPA_SS " %0" :"=m" (ptr->v) :"m" (ptr->v)); return; @@ -106,7 +106,7 @@ static _opa_inline void OPA_incr_int(OPA_int_t *ptr) static _opa_inline void OPA_decr_int(OPA_int_t *ptr) { - __asm__ __volatile__ ("lock ; dec"OPA_SS" %0" + __asm__ __volatile__ ("lock ; dec" OPA_SS " %0" :"=m" (ptr->v) :"m" (ptr->v)); return; @@ -116,7 +116,7 @@ static _opa_inline void OPA_decr_int(OPA_int_t *ptr) static _opa_inline int OPA_decr_and_test_int(OPA_int_t *ptr) { char result; - __asm__ __volatile__ ("lock ; dec"OPA_SS" %0; setz %1" + __asm__ __volatile__ ("lock ; dec" OPA_SS " %0; setz %1" :"=m" (ptr->v), "=q" (result) :"m" (ptr->v)); return result;