[sanitizer] Add MSan to Makefile-based build rules.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175737 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Refactoring: nuke the redundant function declarations in asan_intercepted_functions.h
that had been used on OS X only.
The INTERCEPTOR() macro on OS X is now responsible for declaring the wrapped function, the wrapper and the
pair of pointers to them in __DATA,__interposition section. Thus adding an interceptor requires editing a single file now.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175740 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Put several function prototypes back under #ifdef _WIN32 to fix the Windows build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175743 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Revert the incorrect macro on Linux.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175745 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Declare CreateThread as extern "C" to fix the Windows build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175760 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make sure operator new/delete and friends are intercepted on OS X.
Because the interceptors will reside in a dylib, not the main executable, we can't just declare them,
but must use the interposition machinery.
Fix the test expectations in large_func_test.cc affected by the change.
This CL should make our Mac buildbots green.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175763 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] temporarily disable alloc_dealloc_mismatch on Mac, since the previous commit caused error reports in gTest.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175766 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] move the .preinit_array hack into a separate file (added used attribute)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175871 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] MSanDR: initial commit.

MSanDR is a DynamoRio-based tool that handles uninstrumented libraries and
dynamically generated code for MSan.


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