Introduce the check_malloc_usable_size flag (on by default).
When the flag is set to zero, we do not check for errors in malloc_usable_size.
This may be useful to work around a bug in Nvidia drivers prior to 295.*


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157472 91177308-0d34-0410-b5e6-96231b3b80d8
Factor ParseAsanOptions outside __asan_init



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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157477 91177308-0d34-0410-b5e6-96231b3b80d8
Sync with old GCOV runtime library's file.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157559 91177308-0d34-0410-b5e6-96231b3b80d8
Don't use 'strrchr', which isn't implemented here yet.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157560 91177308-0d34-0410-b5e6-96231b3b80d8
asan: remove static libraries on make clean


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157565 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: do not clean stack/tls for main thread


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157566 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use DCHECK_GT/LT instead of plain DCHECK (better diagnostics)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157567 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: more robust detection of stack of main thread


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157568 91177308-0d34-0410-b5e6-96231b3b80d8
asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxx


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157569 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: increase /proc/self/maps max size (1M is far not enough)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157570 91177308-0d34-0410-b5e6-96231b3b80d8
* A bit of cleanup of the 'recursive_mkdir'. No functionality change.
* Check for absolute paths before using the GCOV_PREFIX.
* Don't add an ending path separator if there's already one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157571 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify the logic that tries to open the GCDA file at all costs. Basically, if
we can't open the file even after creating all of the directories to it, then
just give up.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157572 91177308-0d34-0410-b5e6-96231b3b80d8
Add stub for 'atoi'.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157573 91177308-0d34-0410-b5e6-96231b3b80d8
Add support for the GCOV_PREFIX_STRIP env variable which tries to strip off the first 'n' directories from the filename.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157574 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: be more conservative wrt symbolizer output


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157578 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: pass CFLAGS to tests


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157579 91177308-0d34-0410-b5e6-96231b3b80d8
More verbose check in AppendString.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157580 91177308-0d34-0410-b5e6-96231b3b80d8
Rework the flags machinery a bit.
Clients may define the __asan_default_options char string containing the default options for the tool now.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157582 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix race during pthread_join/detach


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