Remove 'tctx->name' from a logical statement since it is a pointer and always
is converted to a true value.  Detected by Clang's improved -Wbool-conversion


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202223 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Introduce cmake_policy(CMP0022) for target_link_libraries(INTERFACE|PRIVATE).

For now, use both keywords, INTERFACE and PRIVATE via the variable,
  - ${cmake_2_8_12_INTERFACE}
  - ${cmake_2_8_12_PRIVATE}

They could be cleaned up when we introduce 2.8.12.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202239 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r201783 until all FreeBSD fixes are submitted.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202244 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Remove .sh extension from asan_device_setup.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202245 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] asan_device_setup: fix a typo in usage text


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202246 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Add a flag to enable/disable report colorization.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202249 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix printing of long reports to logcat on Android.

__android_log_write has an implicit message length limit.
Print one line at a time.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202250 91177308-0d34-0410-b5e6-96231b3b80d8
[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