This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r240129 - in /trunk/gcc: ChangeLog testsuite/Ch...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 14 Sep 2016 09:01:50 -0000
- Subject: r240129 - in /trunk/gcc: ChangeLog testsuite/Ch...
Author: jakub
Date: Wed Sep 14 09:01:49 2016
New Revision: 240129
URL: https://gcc.gnu.org/viewcvs?rev=240129&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/tsan/pr68260.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tsan.c