https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68260

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:22:25 2017
New Revision: 248606

URL: https://gcc.gnu.org/viewcvs?rev=248606&root=gcc&view=rev
Log:
        Backported from mainline
        2016-09-14  Jakub Jelinek  <ja...@redhat.com>

        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:
    branches/gcc-5-branch/gcc/testsuite/c-c++-common/tsan/pr68260.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/tsan.c

Reply via email to