diff options
author | Bruno Haible <bruno@clisp.org> | 2021-03-19 03:38:53 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-03-19 03:38:53 +0100 |
commit | 2b2e2c1ca7181597631351965b7a20a01c850476 (patch) | |
tree | d94856501387836212eaa5377704fa9cae019822 /lib/simple-atomic.c | |
parent | 734cacc097d99844249c5e1b73f7583648a53bf6 (diff) | |
download | gnulib-2b2e2c1ca7181597631351965b7a20a01c850476.tar.gz |
simple-atomic: Fix compilation error on Solaris 10/x86_64 with cc.
* lib/simple-atomic.c (atomic_compare_and_swap_ptr): Correct asm
instruction.
Diffstat (limited to 'lib/simple-atomic.c')
-rw-r--r-- | lib/simple-atomic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/simple-atomic.c b/lib/simple-atomic.c index 7c4f7e9325..017fb56e77 100644 --- a/lib/simple-atomic.c +++ b/lib/simple-atomic.c @@ -277,7 +277,7 @@ atomic_compare_and_swap_ptr (uintptr_t volatile *vp, return oldval; # else /* __SUNPRO_C */ # if defined __x86_64__ - asm (" movl %rsi,%rax\n" + asm (" movq %rsi,%rax\n" " lock\n cmpxchgq %rdx,(%rdi)"); # elif defined __i386 asm (" movl 16(%ebp),%ecx\n" |