]> granicus.if.org Git - libatomic_ops/commit
Workaround MSan warning about uninitialized data read by generalized store
authorIvan Maidanski <ivmai@mail.ru>
Thu, 16 Feb 2017 06:43:25 +0000 (09:43 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 16 Feb 2017 06:43:25 +0000 (09:43 +0300)
commit9020c5db420efde2bd153de1682d727678dc2855
treee483e383795045d25b35d8d5140e760afd2b00be
parente0f96e14c028a93d1a72d873173fd0cd6fa24fed
Workaround MSan warning about uninitialized data read by generalized store

* src/atomic_ops.h [__has_feature(memory_sanitizer)]
(AO_MEMORY_SANITIZER): Define.
* src/atomic_ops.h [AO_MEMORY_SANITIZER] (AO_ATTR_NO_SANITIZE_MEMORY):
Likewise.
* src/atomic_ops/generalize-small.h: Regenerate.
* src/atomic_ops/generalize-small.template
[AO_HAVE_XSIZE_compare_and_swap_write && !AO_HAVE_XSIZE_store_write]
(AO_XSIZE_store_write): Add AO_ATTR_NO_SANITIZE_MEMORY attribute.
* src/atomic_ops/generalize-small.template
[AO_HAVE_XSIZE_compare_and_swap && !AO_HAVE_XSIZE_store]
(AO_XSIZE_store): Likewise.
* src/atomic_ops/generalize-small.template
[AO_HAVE_XSIZE_compare_and_swap_release && !AO_HAVE_XSIZE_store_release]
(AO_XSIZE_store_release): Likewise.
* src/atomic_ops/generalize-small.template
[AO_HAVE_XSIZE_compare_and_swap_full && !AO_HAVE_XSIZE_store_full]
(AO_XSIZE_store_full): Likewise.
src/atomic_ops.h
src/atomic_ops/generalize-small.h
src/atomic_ops/generalize-small.template