]> granicus.if.org Git - libatomic_ops/commit
Fix for x32 by removing 'q' suffix in x86-64 instructions
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 1 May 2012 10:31:30 +0000 (14:31 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 1 May 2012 10:53:25 +0000 (14:53 +0400)
commit711f7fe2084eb2d5c6446ba4d39736189fc7de47
treeab4b9c212c5b6140946cc9b89a40e7a78447ff4b
parent531888d92a95916e18334359937dc6b818c48ea2
Fix for x32 by removing 'q' suffix in x86-64 instructions

We do not need the 'q' suffix on x86_64 atomic instructions for AO_t
which is defined as "unsigned long"; the later is 32-bit for x32
and 64-bit for x86-64; the register operand in x86-64 atomic
instructions is sufficient to properly determine the register size.

* src/atomic_ops/sysdeps/gcc/x86_64.h (AO_fetch_and_add_full,
AO_and_full, AO_or_full, AO_xor_full, AO_compare_and_swap_full,
AO_fetch_compare_and_swap_full): Remove 'q' suffix in asm instruction.
src/atomic_ops/sysdeps/gcc/x86_64.h