]> granicus.if.org Git - libatomic_ops/commit
Fix AO_compare_double_and_swap_double_full for gcc-4.2.1/x86 in PIC mode
authorIvan Maidanski <ivmai@mail.ru>
Wed, 4 Jul 2012 04:32:03 +0000 (08:32 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 4 Jul 2012 11:32:34 +0000 (15:32 +0400)
commit613f39d369045e8fc385a439f67a575cddcc6fa1
treea4267871492557b19d377cae547e0ea13917da69
parentdf42d4533780006a3094f523201d32ea74d39e0c
Fix AO_compare_double_and_swap_double_full for gcc-4.2.1/x86 in PIC mode

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Use EDI register for
"new_val1" argument in PIC mode only for GCC 4.3+ to workaround
a problem with older compiler versions (e.g., GCC 4.2.1 [FreeBSD])
that do not recognize 'D' as a valid register specification; update
comment.
src/atomic_ops/sysdeps/gcc/x86.h