diff options
author | Maxim Ostapenko <m.ostapenko@samsung.com> | 2016-05-19 12:05:59 +0000 |
---|---|---|
committer | Maxim Ostapenko <chefmax@gcc.gnu.org> | 2016-05-19 15:05:59 +0300 |
commit | f3510625cf2035e6876246a9689db10163e96830 (patch) | |
tree | 66ed7694eb6d390d58101fcea55a0f9e4321f9c5 /gcc/doc/cpp.texi | |
parent | 73fb6a9d96d1213ad90da2723c5fbb4f9da97c45 (diff) | |
download | gcc-f3510625cf2035e6876246a9689db10163e96830.tar.gz |
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
Diffstat (limited to 'gcc/doc/cpp.texi')
-rw-r--r-- | gcc/doc/cpp.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 9f914b2759d..44f59bdfb47 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -2362,6 +2362,9 @@ in use. This macro is defined, with value 1, when @option{-fsanitize=address} or @option{-fsanitize=kernel-address} are in use. +@item __SANITIZE_THREAD__ +This macro is defined, with value 1, when @option{-fsanitize=thread} is in use. + @item __TIMESTAMP__ This macro expands to a string constant that describes the date and time of the last modification of the current source file. The string constant |