cmake: fix the compiler-rt build with MSVC

This sets flags and excludes things that aren't working with MSVC yet,
allowing us to build the ASan runtime as part of the cmake build.

Differential Revision: http://llvm-reviews.chandlerc.com/D1525

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189304 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Simplify sigaction and sigset_t handling.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189338 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] A test for ppoll() interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189339 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix a data race in signal/sigaction interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189342 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Unpoison all TLS shadow when leaving a signal handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189343 91177308-0d34-0410-b5e6-96231b3b80d8
LSan: Check that dynamic linker library is properly symbolized

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189347 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r189347: it breaks on machines w/o installed debug versions of system libraries

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189350 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Save/restore va_arg_overflow_tls in signal handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189351 91177308-0d34-0410-b5e6-96231b3b80d8
Properly generate lists of exported symbols for sanitizer runtimes

This change adds a Python script that is invoked for
the just-built sanitizer runtime to generate the list of exported symbols
passed to the linker. By default, it contains interceptors and sanitizer
interface functions, but can be extended with tool-specific lists.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189356 91177308-0d34-0410-b5e6-96231b3b80d8
Generate list of symbols exported from sanitizer runtimes only on 64-bit Unix

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189454 91177308-0d34-0410-b5e6-96231b3b80d8
[asan]: fix a CHECK failure in use-after-return mode; enable and fix stack-use-after-return.cc; add a test for UAR mode in asan_noinst_test 

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189457 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Remove extra backup/restore calls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189461 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix code style

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189474 91177308-0d34-0410-b5e6-96231b3b80d8
Check code style in check-sanitizer command

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189475 91177308-0d34-0410-b5e6-96231b3b80d8
Make lint checker script more robust

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189479 91177308-0d34-0410-b5e6-96231b3b80d8
sanitizer_common: Use PYTHON_EXECUTABLE to choose appropriate python.

Fixes build on systems where 'python' is not python2.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189486 91177308-0d34-0410-b5e6-96231b3b80d8
cmake: Add /Oy- (don't omit frame pointer) to compile flags

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189488 91177308-0d34-0410-b5e6-96231b3b80d8
[dfsan] Add custom function for pthread_create.

Differential Revision: http://llvm-reviews.chandlerc.com/D1504

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189502 91177308-0d34-0410-b5e6-96231b3b80d8
[dfsan] Add custom function for dl_iterate_phdr.

Differential Revision: http://llvm-reviews.chandlerc.com/D1505

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189503 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Refine CMake rules for generating exported symbols and lint checking

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