[Sanitizer]: add __sanitizer_set_report_fd function to alter file descriptor for error reports

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167290 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Use kStderrFd constant instead of hardcoded 2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167291 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] finally remove TsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167294 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] move unit test for Printf from tsan to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167296 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] fix printf unittest on 32-bit arch

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167297 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to determine whether error reports are printed to terminal

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167298 91177308-0d34-0410-b5e6-96231b3b80d8
Update compiler-rt tests to match flag renaming/deprecation in Clang.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167434 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix Go build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167446 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix windows build
__declspec is not _WIN32, it's _MSC_VER



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167447 91177308-0d34-0410-b5e6-96231b3b80d8
tasn: improve sanitizer_internal_defs.h
The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167448 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix non-msvc windows build



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167449 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: define missing compier macros for windows



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167450 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: don't release disabled clocks



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167451 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: windows: less includes, better diagnostics for failed VirtualAlloc(), implement sched_yield()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167452 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix constant types



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167453 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add missing function for windows



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167454 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add shadow mapping for windows


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167455 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: update script to support windows


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167456 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: windows platform support


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


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