2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
commited0b0569e1f4ee44bddb565f3331b4f09a5f592b
authorchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 May 2016 12:05:59 +0000 (19 12:05 +0000)
committerchefmax <chefmax@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 May 2016 12:05:59 +0000 (19 12:05 +0000)
tree66ed7694eb6d390d58101fcea55a0f9e4321f9c5
parentcdc645f7ee2d2746752378b5e11c154a32e32557
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236457 138bc75d-0d04-0410-961f-82ee72b054a4
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]