summaryrefslogtreecommitdiff
path: root/contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-09-10 20:35:47 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-09-10 20:35:47 +0000
commit852790874793186f2dfe59fd7c7a082c6920ed9c (patch)
treef8f8e6ce180ca5204b650ff6315e6e0893f9a679 /contrib/compiler-rt/lib/tsan/rtl/tsan_defs.h
parentcfab224f313612ff1961bdd7b9749e29d0e4e6af (diff)
parentf31bcc68c72371a2bf63aead9f3373a1ff2053b6 (diff)
downloadsrc-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.h5
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