summaryrefslogtreecommitdiffstats
path: root/contrib/compiler-rt/lib/asan/asan_activation_flags.inc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-02-22 22:31:36 +0000
committerdim <dim@FreeBSD.org>2015-02-22 22:31:36 +0000
commit64036a7c35233ad0f5289d81af95a2b7023eee7e (patch)
treec80ef9cb2d1e54757027bc3e1b32b98c01ad850c /contrib/compiler-rt/lib/asan/asan_activation_flags.inc
parent62a5f71b46f317b1666b2f5240bdb30f0c2a2b98 (diff)
parent5c652b16dfa55fef6d0953359e6e8f6933ee3a0f (diff)
downloadFreeBSD-src-64036a7c35233ad0f5289d81af95a2b7023eee7e.zip
FreeBSD-src-64036a7c35233ad0f5289d81af95a2b7023eee7e.tar.gz
Update compiler-rt to trunk r228651. This enables using Address
Sanitizer and Undefined Behavior Sanitizer with clang 3.6.0.
Diffstat (limited to 'contrib/compiler-rt/lib/asan/asan_activation_flags.inc')
-rw-r--r--contrib/compiler-rt/lib/asan/asan_activation_flags.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/asan/asan_activation_flags.inc b/contrib/compiler-rt/lib/asan/asan_activation_flags.inc
new file mode 100644
index 0000000..d4c089e
--- /dev/null
+++ b/contrib/compiler-rt/lib/asan/asan_activation_flags.inc
@@ -0,0 +1,35 @@
+//===-- asan_activation_flags.inc -------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// A subset of ASan (and common) runtime flags supported at activation time.
+//
+//===----------------------------------------------------------------------===//
+#ifndef ASAN_ACTIVATION_FLAG
+# error "Define ASAN_ACTIVATION_FLAG prior to including this file!"
+#endif
+
+#ifndef COMMON_ACTIVATION_FLAG
+# error "Define COMMON_ACTIVATION_FLAG prior to including this file!"
+#endif
+
+// ASAN_ACTIVATION_FLAG(Type, Name)
+// See COMMON_FLAG in sanitizer_flags.inc for more details.
+
+ASAN_ACTIVATION_FLAG(int, redzone)
+ASAN_ACTIVATION_FLAG(int, max_redzone)
+ASAN_ACTIVATION_FLAG(int, quarantine_size_mb)
+ASAN_ACTIVATION_FLAG(bool, alloc_dealloc_mismatch)
+ASAN_ACTIVATION_FLAG(bool, poison_heap)
+
+COMMON_ACTIVATION_FLAG(bool, allocator_may_return_null)
+COMMON_ACTIVATION_FLAG(int, malloc_context_size)
+COMMON_ACTIVATION_FLAG(bool, coverage)
+COMMON_ACTIVATION_FLAG(const char *, coverage_dir)
+COMMON_ACTIVATION_FLAG(int, verbosity)
+COMMON_ACTIVATION_FLAG(bool, help)
OpenPOWER on IntegriCloud