re PR sanitizer/64354 (no preprocessor symbol __SANITIZE_THREAD__)
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Thu, 19 May 2016 12:05:59 +0000 (12:05 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Thu, 19 May 2016 12:05:59 +0000 (15:05 +0300)
commitf3510625cf2035e6876246a9689db10163e96830
tree66ed7694eb6d390d58101fcea55a0f9e4321f9c5
parent73fb6a9d96d1213ad90da2723c5fbb4f9da97c45
re PR sanitizer/64354 (no preprocessor symbol __SANITIZE_THREAD__)

2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/64354
* cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
* doc/cpp.texi: Document new macros.

* c-c++-common/tsan/sanitize-thread-macro.c: New test.

From-SVN: r236457
gcc/ChangeLog
gcc/cppbuiltin.c
gcc/doc/cpp.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tsan/sanitize-thread-macro.c [new file with mode: 0644]