[tsan] fix thread_name.cc test to work with older versions of libc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173023 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Define va_copy on win32.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173025 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup for r173021: build tests with zero-based shadow on Android only, fix condition in checking for shadow gap in asan_mapping.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173026 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable scanf interceptor on windows.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173037 91177308-0d34-0410-b5e6-96231b3b80d8
CMake: generalize checking for target availability and add initial support for PowerPC native arch. With this patch, building LLVM on PowerPC native arch produces a working ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173044 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Move Mac-specific tests to asan_mac_test.cc



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173048 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix linux build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173049 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] split asan_test.cc to speedup parallel build (most important if building with a debug clang, which takes a couple of minutes on this large file with templates). More splits to follow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173129 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] split asan_test.cc more

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173130 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] split asan_test.cc even more

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173131 91177308-0d34-0410-b5e6-96231b3b80d8
ASan: disable flexible mapping and offset on Android. It doesn't work for dynamic ASan runtime there

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173132 91177308-0d34-0410-b5e6-96231b3b80d8
ASan: simplify build rules for unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173133 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Use dylib interposition to hook memory allocation in the dynamic runtime.
This CL drastically simplifies the way we're hooking the memory allocation routines in ASan on Mac by using dylib interposition to replace the main malloc_zone_* functions. This allows us to avoid replacing the default CFAllocator and drop the CF dependency at all.

Committing this patch will result in the static runtime being broken. A follow-up CL will switch ASan to use the dynamic runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173134 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Moved interface_symbols.c to lit_tests/Linux.
We already have Darwin-specific version of this test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173136 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix the path to ASan interface in interface_symbols_linux.c


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173140 91177308-0d34-0410-b5e6-96231b3b80d8
ASan: use Clang -fsanitize-blacklist flag in unit tests (instead of -mllvm)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173142 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Remove the declarations of pthread_workqueue_t and pthread_workitem_handle_t, which are used no more.
Kudos to Jeremy Huddleston Sequoia <jeremyhu@apple.com>


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173143 91177308-0d34-0410-b5e6-96231b3b80d8
ASan: add output test for -fsanitize-address-zero-based-shadow option on Linux

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