]> granicus.if.org Git - gc/commit
Remove some redundant macro definitions from gc_atomic_ops.h
authorIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 07:47:33 +0000 (10:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 29 Nov 2017 08:16:09 +0000 (11:16 +0300)
commit8179b25ec8f43dc1a627f3c884a383075485f557
treeff5bb7c8eff0d1ebd01b869714edafad4a6a07b9
parent9e1cb6294210a5b836151c6a91fae6f3dba94bf3
Remove some redundant macro definitions from gc_atomic_ops.h
(fix commit 46a2411)

* include/private/gc_atomic_ops.h [GC_BUILTIN_ATOMIC] (AO_HAVE_load,
AO_HAVE_store, AO_HAVE_store_release_write): Remove.
* include/private/gc_atomic_ops.h [GC_BUILTIN_ATOMIC && AO_REQUIRE_CAS]
(AO_HAVE_compare_and_swap): Likewise.
* include/private/gc_atomic_ops.h [!GC_BUILTIN_ATOMIC]: Add comment.
* include/private/gc_priv.h (word_ptr_ao_u): Replace
"ifdef AO_HAVE_load" to "ifdef PARALLEL_MARK".
* tests/test_atomic_ops.c [AO_HAVE_compare_and_swap_release] (main):
Do not check whether AO_REQUIRE_CAS and AO_HAVE_compare_and_swap are
defined.
* typd_mlc.c [GC_FORCE_INCLUDE_ATOMIC_OPS || GC_BUILTIN_ATOMIC]
(include gc_atomic_ops.h): Do not check whether AO_HAVE_load_acquire
is defined.
include/private/gc_atomic_ops.h
include/private/gc_priv.h
tests/test_atomic_ops.c
typd_mlc.c