[CMake] Simplify code for detecting/setting compiler flags

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201544 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Make __cxa_demangle non-weak symbol on Android.

This fixes global-demangle.cc test on Android.

https://code.google.com/p/address-sanitizer/issues/detail?id=264


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201545 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Simplify setting compile flag disabling RTTI

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Replace rand_r with rand in test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201548 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Check for -fPIE and -ffreestanding flags for consistency

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201549 91177308-0d34-0410-b5e6-96231b3b80d8
Drop test/asan/GenericConfig directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201552 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify lit test configs for LSan and UBSan by using a generic config

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201553 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] one more lit test for deadlock detector; more to come

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201554 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Add top-level target for each compiler-rt library, and add 'compiler-rt' target encompassing them all.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201556 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Override default sigaltstack setting on Android.

Android libc always sets altstack on non-main threads, but it is too small for
our unwinder. With use_sigaltstack=1, override this setting with a larger one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201557 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix one test on OSX.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201564 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Stack overflow detection.

Report segmentation faults near or below stack bottom as stack-overflow
(not stack-buffer-overflow!).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201565 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Don't build ASan for iossim if -mmacosx-version-min is specified

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201566 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Disable stack-overflow test on main thread.

Failing on some bots.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201567 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] in deadlock detector do not register locks on their creation and unregister them on destruction; added a relevant test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201568 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Relax stack-overflow test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201571 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] make sure the deadlock detector survives the change of epochs; add a test and a comment

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201572 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Rename several variables

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201575 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] when reporting a deadlock also report the lock cycle

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