]> 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 14:27:49 +0000 (18:27 +0400)
commit1da5cd270ae96e4a95af76e2c43a9a6bbee66ad9
tree23d04d4ac6edb05e6a363cea27205ba183f0f3eb
parentb4993e167ce894d9db7f8f25e8863d95211a8d12
Fix for x32 by removing 'q' suffix in x86-64 instructions
(Apply commit 711f7fe from 'master' branch)

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