* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.
[official-gcc.git] / libsanitizer / lsan / lsan_flags.inc
blob98611257494c271fa65c8a60babdb8e7d62da087
1 //===-- lsan_flags.inc ------------------------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // LSan runtime flags.
9 //
10 //===----------------------------------------------------------------------===//
11 #ifndef LSAN_FLAG
12 # error "Define LSAN_FLAG prior to including this file!"
13 #endif
15 // LSAN_FLAG(Type, Name, DefaultValue, Description)
16 // See COMMON_FLAG in sanitizer_flags.inc for more details.
18 LSAN_FLAG(bool, report_objects, false,
19           "Print addresses of leaked objects after main leak report.")
20 LSAN_FLAG(
21     int, resolution, 0,
22     "Aggregate two objects into one leak if this many stack frames match. If "
23     "zero, the entire stack trace must match.")
24 LSAN_FLAG(int, max_leaks, 0, "The number of leaks reported.")
26 // Flags controlling the root set of reachable memory.
27 LSAN_FLAG(bool, use_globals, true,
28           "Root set: include global variables (.data and .bss)")
29 LSAN_FLAG(bool, use_stacks, true, "Root set: include thread stacks")
30 LSAN_FLAG(bool, use_registers, true, "Root set: include thread registers")
31 LSAN_FLAG(bool, use_tls, true,
32           "Root set: include TLS and thread-specific storage")
33 LSAN_FLAG(bool, use_root_regions, true,
34           "Root set: include regions added via __lsan_register_root_region().")
35 LSAN_FLAG(bool, use_ld_allocations, true,
36           "Root set: mark as reachable all allocations made from dynamic "
37           "linker. This was the old way to handle dynamic TLS, and will "
38           "be removed soon. Do not use this flag.")
40 LSAN_FLAG(bool, use_unaligned, false, "Consider unaligned pointers valid.")
41 LSAN_FLAG(bool, use_poisoned, false,
42           "Consider pointers found in poisoned memory to be valid.")
43 LSAN_FLAG(bool, log_pointers, false, "Debug logging")
44 LSAN_FLAG(bool, log_threads, false, "Debug logging")
45 LSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")