[asan] remove UB (comparison of two unrelated pointers) from a test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202266 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Split interception-in-shared-lib-test.cc into two tests with platform-specific RUN commands.
Get rid of a TestCases/SharedLibs/shared-lib-test-so.cc dependency in these tests.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202267 91177308-0d34-0410-b5e6-96231b3b80d8
Support 'q' length modifier in scanf/printf interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202268 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix deadlock detector test so that it does not force contention in runtime



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202278 91177308-0d34-0410-b5e6-96231b3b80d8
Emulate C99/C++11 __func__ for Visual C++.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202296 91177308-0d34-0410-b5e6-96231b3b80d8
Reapply r201910. MSVC gets __func__ defined explicitly, even though it
can't build anything here.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202297 91177308-0d34-0410-b5e6-96231b3b80d8
Undef helper macros after using them.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202298 91177308-0d34-0410-b5e6-96231b3b80d8
Append -D__func__=__FUNCTION__ to SANITIZER_COMMON_CFLAGS

This way it gets picked up for all sanitizer libs, both sanitizer_common
and asan.  I believe those are the only libs that build with asan.
There should be no need to set the __func__ definition inside
clang_compile.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202303 91177308-0d34-0410-b5e6-96231b3b80d8
Move COMPILER_RT_HAS_FUNC check from r202303 to config-ix.cmake

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202353 91177308-0d34-0410-b5e6-96231b3b80d8
Add accidentally removed -D

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202355 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Make sure add_compiler_rt_resource_file doesn't do unnecessary work

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202356 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: improve deadlock detector test
- allow to specify which test to run
- allow to specify number of iterations
- specify number of threads required in the test itself



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202358 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Don't disable SEGV handler on Android by default.

This is done mostly for consistency, because this setting is normally overridden in cmake.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202359 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add recursive deadlock detector benchmark



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202361 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Install asan_device_setup to bin/ when targetting Android.

asan_device_setup is a utility that prepares a device to run code built with
ASan. Essentially, it installs ASan runtime library into the system. For this
reason, it has to be at a predictable relative path from the runtime library
itself. We also plan to distribute this utility, packaged with runtime library
and maybe llvm-symbolizer, to the users.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202362 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Sizes and layouts for sanitizers on FreeBSD.

Patch by Viktor Kutuzov.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202364 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix internal deadlock detector for external deadlock detector
we must go deeper!



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202365 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add another deadlock detector benchmark



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202366 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix deadlock detector lit test output



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


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