[sanitizer] Move log_path to common flag and use it in MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184836 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Define interceptors more correctly. Also, always clear allocated memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184849 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add missing __attribute__((visibility("default"))) to interface functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184858 91177308-0d34-0410-b5e6-96231b3b80d8
Don't use 'errno.h' on Apple just yet. This breaks for some of our buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184878 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a use after free I introduced and that Bill caught in code review
(thanks!) by deferring the free of the filename until we finish writing
the coverage data to that file.

Bill, let me know if you'd prefer a different approach!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184895 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix build with OSS4 kernel headers.

This fixes PR16453.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184925 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Reformat line >80 chars.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184926 91177308-0d34-0410-b5e6-96231b3b80d8
Revert the Darwin half of r184805: "Remove the sysroot (or isysroot)
restriction from the GCDAProfile.c"

Bill added a much more effective way of coping with the use of errno and
other system interactions for Darwin for now by disabling it on that
platform. Building against the SDK stuff is more fundamental to the
darwin build process.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184929 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] initialize fake_stack lazily and increase its maximal size. This makes -fsanitize=address,use-after-return more robust: all SPEC tests pass now. In the default mode thread stacks become a bit smaller.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184934 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] readdir and readdir_r interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184950 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] Move some suppressions-related code to common.

Factor out code to be reused in LSan. Also switch from linked list to vector.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184957 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Temporarily disable building the armv7 variants of profile_ios on"

This reverts commit r184816.  With Chandler's change in r184929, this should
no longer be necessary.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184961 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184963 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Rename __msan_unpoision_param to __msan::UnpoisonParam - it shouldn't be in interface

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185062 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] try to fix Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185063 91177308-0d34-0410-b5e6-96231b3b80d8
[LSan] Add the way to disable LSan at link time

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185066 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix dirent interceptors.

The new version reads d_reclen for (struct dirent) size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185067 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Optionally disable 2 tests (dlopen & gethostbyname).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185076 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove non-existent functions from syms file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185077 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: revert dynamic symbols file to the old incorrect one
full proper list of dynamic symbols crashes old gold (see bug 16468).
the culprit is 'memcpy' function, if it's added to syms file, gold crashes



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