tsan: fix handling of pthread_cond_wait in presence of pthread_cancel
if the thread is cancelled in pthread_cond_wait, it locks the mutex before
processing pthread_cleanup stack
but tsan was missing that, thus reporting false double-lock/wrong-unlock errors
see the test for details



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203648 91177308-0d34-0410-b5e6-96231b3b80d8
Add FreeBSD 9.2 support to asan_linux.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203658 91177308-0d34-0410-b5e6-96231b3b80d8
Fix MSVS warnings in the sanitizers RTL

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203661 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix deadlock in deadlock detector
forget to unlock a mutex on one of the paths



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203663 91177308-0d34-0410-b5e6-96231b3b80d8
Implement Android versions of __clear_cache for arm32 & mips.

The MIPS version was reviewed by myself. The ARM version was reviewed by JF
Bastien.

Patch by Narayan Kamath <narayan@google.com>.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203674 91177308-0d34-0410-b5e6-96231b3b80d8
profile: Use a simple binary format for profiling

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203710 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "profile: Use a simple binary format for profiling"

This will break without the corresponding change in clang, which I've
reverted until I figure out how to get it to link properly.

This reverts commit r203710.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203713 91177308-0d34-0410-b5e6-96231b3b80d8
Preserve constness for intermediate pointers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203743 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Make append_if semantics similar to those used in LLVM

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