PR sanitizer/68260
commit0975f7647395f43d646f214d65aad6e3bf5b36c8
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2016 09:01:49 +0000 (14 09:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2016 09:01:49 +0000 (14 09:01 +0000)
tree5e531f060222a533f2c6e86459883b8b39120199
parent5a0890bc36b2f580526f4a7143f5aad9f3a2cf1c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240129 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tsan/pr68260.c [new file with mode: 0644]
gcc/tsan.c