tsan: add SetEnv() function that can be used in frontends



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177857 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: intercept setjmp/longjmp


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177858 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Build TSan unit tests with the same compile flags as TSan runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177859 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Compile sanitizer runtimes with -Wno-non-virtual-dtor. Virtual dtors may be a problem for us, as sanitizer runtime should not generally assume libstdc++ presence.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177860 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] mark local function as static

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177862 91177308-0d34-0410-b5e6-96231b3b80d8
asan/tsan: add Printf/Report hook
The hook can be overriden in frontend to print to e.g. a file.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177864 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Use dynamic symbol table when checking exported ASan runtime symbols

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177868 91177308-0d34-0410-b5e6-96231b3b80d8
Add basic support for building profile compiler-rt library in CMake build on Darwin

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177870 91177308-0d34-0410-b5e6-96231b3b80d8
Add a GetTid() implementation for Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177927 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] print thread number while reporting invalid-free and double-free; add tests; also add a test for use-after-poison

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177993 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] add a test for aligned-vs-unaligned race (tsan's false negative)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177996 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Disable atomic_test on Android, where it crashes Clang.

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