[asan] Use -pthread instead of -lpthread in tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210255 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix lit tests setup on Android.

Pass cflags in a way that's compatible with standalone compiler-rt build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210256 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add 'asan' to asan test deps.

This sound like a good idea in general.
Also, without this on Android we get add_lit_testsuite() with empty DEPENDS
list, and it does not work well.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210257 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] asan_device_setup: extend search path

In standalone build asan-rt is stored in yet another path.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210259 91177308-0d34-0410-b5e6-96231b3b80d8
[asancov] Faster coverage in memory-mapped mode.

Use caller pc of __sanitizer_cov_module_init to figure out
when 2 sequential calls are from the same module; skip
.sancov.map file update in this case.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210267 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Reduce the stack frame size of ReportDeadlock

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210301 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] initialize fake_stack_ to 0 before we call SetThreadStackAndTls, because that may actually try to use fake_stack_ (still don't know how). Yet another case where we desperately want https://sourceware.org/glibc/wiki/ThreadPropertiesAPI

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