diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-03-20 14:58:36 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-03-20 14:58:36 +0000 |
commit | 100624f4302982b5d5cc554cb9ba106186f77246 (patch) | |
tree | 635b367683d2d0b3433341292db388c758057f4d /docs/UsersManual.rst | |
parent | 5cf6322963bf60e15c58f820b341b608d64667c5 (diff) | |
download | clang-100624f4302982b5d5cc554cb9ba106186f77246.tar.gz clang-100624f4302982b5d5cc554cb9ba106186f77246.tar.bz2 clang-100624f4302982b5d5cc554cb9ba106186f77246.tar.xz |
[msan] -fsanitize-memory-track-origins=[level] flag and docs.
This change turns -fsanitize-memory-track-origins into
-fsanitize-memory-track-origins=[level] flag (keeping the old one for
compatibility). Possible levels are 0 (off), 1 (default) and 2 (incredibly
detailed). See docs (part of this patch) for more info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r-- | docs/UsersManual.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index e58093831b..43a8717c9b 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -968,12 +968,17 @@ are listed below. Extra features of MemorySanitizer (require explicit ``-fsanitize=memory``): - - ``-fsanitize-memory-track-origins``: Enables origin tracking in + - ``-fsanitize-memory-track-origins[=level]``: Enables origin tracking in MemorySanitizer. Adds a second section to MemorySanitizer reports pointing to the heap or stack allocation the uninitialized bits came from. Slows down execution by additional 1.5x-2x. + Possible values for level are 0 (off), 1 (default), 2. Level 2 adds more + sections to MemorySanitizer reports describing the order of memory stores + the uninitialized value went through. Beware, this mode may use a lot of + extra memory. + Extra features of UndefinedBehaviorSanitizer: - ``-fno-sanitize-recover``: By default, after a sanitizer diagnoses |