]> git.ipfire.org Git - thirdparty/qemu.git/commit
meson: hide tsan related warnings
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Wed, 23 Oct 2024 11:33:52 +0000 (12:33 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 24 Oct 2024 08:56:09 +0000 (09:56 +0100)
commitcf6fbba724f19355d31b7d8dd1a711538dd91645
tree31d07a8fb6d84757acd9fd9320880f6d53f755a9
parente4239ee92fe07bffe74759832499cf732923c76a
meson: hide tsan related warnings

When building with gcc-12 -fsanitize=thread, gcc reports some
constructions not supported with tsan.
Found on debian stable.

qemu/include/qemu/atomic.h:36:52: error: ‘atomic_thread_fence’ is not supported with ‘-fsanitize=thread’ [-Werror=tsan]
   36 | #define smp_mb()                     ({ barrier(); __atomic_thread_fence(__ATOMIC_SEQ_CST); })
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240910174013.1433331-2-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241023113406.1284676-5-alex.bennee@linaro.org>
meson.build