[tsan] added tsan-vs-gvn test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174875 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Lit tests for MemorySanitizer.

Build system setup for MSan lit tests (build with freshly-built clang, run,
check output) - a nearly exact copy from ASan.
First 2 lit tests for MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174876 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Scanf parser improvements.

Handle %a in cases when it is unambiguous.
Handle %m.

Patch by Jakub Jelinek.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174882 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Remove an extra va_copy.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174883 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] scanf: don't report stores that did not happen.

Respect REAL(scanf) return value and don't report memory stores that
could potentially happen, but did not.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174887 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] clang-format pass over scanf code.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174888 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] symbolize correct PC when printing Summary message

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174956 91177308-0d34-0410-b5e6-96231b3b80d8