Revert "Fix test cases given Clang's improved location information."

The Clang improevments were reverted due to failures created in an asan
bootstrap.

This reverts commit r224387.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224446 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Move flag parsing logic to asan_flags.cc. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224450 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] allow -fsanitize-coverage=N w/ -fsanitize=leak, compiler-rt part

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224464 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] add CombinedAllocator::InitIfLinkerInitialized and use it in lsan: speeds up lsan start-up time by ~25%

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224469 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Always build shared ASan runtime on Linux.

This commit changes the strategy for building shared ASan runtime
and the way we test it:
  - COMPILER_RT_BUILD_SHARED_ASAN CMake option is removed. We now
    always build shared ASan runtime (it is the default on Android,
    Windows and Mac, and not the default on Linux and FreeBSD).
  - Platforms, which use static runtime by default now have
    "check-asan-dynamic" testsuite. This testsuite contains instrumented
    unit tests, and ASan lit tests, and runs them with shared ASan
    runtime. This testsuite is *not* a part of "check-asan" and
    *not* a part of "check-all", as adding 1000 more test cases, which
    duplicate existing ones is costly. However, you're welcome to
    add this command to your buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224470 91177308-0d34-0410-b5e6-96231b3b80d8
Fix obvious cut&paste error on AArch64 Compiler-RT settings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224472 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add -ldl to linker invocation to lit tests that require it.

This fixes these tests under dynamic ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224473 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Mark test for -fsized-delete as XFAIL for dynamic runtime.

-fsized-delete is implemented via weak symbols, and doesn't work
properly when malloc/free replacements are provided in shared
ASan runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224474 91177308-0d34-0410-b5e6-96231b3b80d8
Do not define CRT_HAS_128BIT for MIPS64

Do not define it for MIPS64 until its backend supports it.
See the bug report [1] for more information.

[1] http://llvm.org/bugs/show_bug.cgi?id=20098

Differential Revision: http://reviews.llvm.org/D6703


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224488 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: disable flaky debug check

see the comment for details



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224507 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: don't crash with NULL deref during reporting

tctx==NULL crash observed during deadlock reporting.
There seems to be some bugs in the deadlock detector,
but it is still useful to be more robust during reporting.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224508 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add a stress test for deadlock detector

currently disabled because fails



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