diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-09-10 20:35:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-09-10 20:35:47 +0000 |
commit | 852790874793186f2dfe59fd7c7a082c6920ed9c (patch) | |
tree | f8f8e6ce180ca5204b650ff6315e6e0893f9a679 /contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h | |
parent | cfab224f313612ff1961bdd7b9749e29d0e4e6af (diff) | |
parent | f31bcc68c72371a2bf63aead9f3373a1ff2053b6 (diff) | |
download | src-test2-852790874793186f2dfe59fd7c7a082c6920ed9c.tar.gz src-test2-852790874793186f2dfe59fd7c7a082c6920ed9c.zip |
Notes
Diffstat (limited to 'contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h')
-rw-r--r-- | contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h b/contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h index 910a483127d5..d869d95e0878 100644 --- a/contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h +++ b/contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h @@ -17,6 +17,7 @@ #include "sanitizer_common/sanitizer_internal_defs.h" #include "sanitizer_common/sanitizer_libc.h" #include "tsan_stat.h" +#include "ubsan/ubsan_platform.h" // Setup defaults for compile definitions. #ifndef TSAN_NO_HISTORY @@ -27,6 +28,10 @@ # define TSAN_COLLECT_STATS 0 #endif +#ifndef TSAN_CONTAINS_UBSAN +# define TSAN_CONTAINS_UBSAN (CAN_SANITIZE_UB && !defined(SANITIZER_GO)) +#endif + namespace __tsan { #ifdef SANITIZER_GO |