re PR sanitizer/68260 (false positive with tsan)
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Sep 2016 09:01:49 +0000 (11:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Sep 2016 09:01:49 +0000 (11:01 +0200)
commit5ba4a08cc68ddd5fccfa16c419130ea63daf7640
tree5e531f060222a533f2c6e86459883b8b39120199
parent130ffea03c8226065628437f9611c029f21fcc62
re PR sanitizer/68260 (false positive with tsan)

PR sanitizer/68260
* tsan.c: Include target.h.
(enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
(BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
(tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
BUILT_IN_ATOMIC_TEST_AND_SET entries.
(instrument_builtin_call): Handle bool_clear and bool_test_and_set.

* c-c++-common/tsan/pr68260.c: New test.

From-SVN: r240129
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tsan/pr68260.c [new file with mode: 0644]
gcc/tsan.c