Unify the name of compiler-rt builtins library on Linux.

Call it "libclang_rt.builtins-<arch>.a" to be consistent
with sanitizers/profile libraries naming. Modify Makefile
and CMake build systems and Clang driver accordingly.

Fixes PR19822.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209473 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] ifdef out certain functions if 128-bit ints are not supported.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209476 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix a test following r209508

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209509 91177308-0d34-0410-b5e6-96231b3b80d8
[ubsan] handle long double in 32-bit mode; part of the patch by Marek Polacek

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209516 91177308-0d34-0410-b5e6-96231b3b80d8
[ubsan] temporary disable testing with -m32 as there are bots that don't support it

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209517 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Make stack traces from dlclose()'d modules more meaningful.

Previously, they silently omitted PCs belonging to unknown modules. Now we print
(<unknown module>) instead.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209522 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win tests] Use the env keyword in the SUAR tests to work with gnuwin/lit correctly

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209620 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win tests] Remove the extra 'cat' in front of FileCheck now that it's clear we should use GnuWin32 rather than Cygwin on the PATH on Windows (see PR19744)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209622 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Implement __sanitizer_print_stack_trace().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209625 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Use ASAN_OPTIONS in a portable way

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209629 91177308-0d34-0410-b5e6-96231b3b80d8
On AArch64, use clone() instead of fork()

Patch by Gideon Billings.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209641 91177308-0d34-0410-b5e6-96231b3b80d8
[asancov] Write coverage directly to a memory-mapped file.

This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.

We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209653 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Disable dlopen interceptor on Android.

It can not work, as libdl is always first in the lookup order,
even ahead of LD_PRELOAD-ed libraries.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209658 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] use relative line numbers in tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209699 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add a few stubs to fix windows build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209717 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add a dll thunk for __sanitizer_cov_module_init.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209718 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Use clang rather than clang-cl by default for lit tests. Make Windows-only tests explicitly use clang-cl.

Reviewed at http://reviews.llvm.org/D3893

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209719 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Move one more test to POSIX-only directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209722 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix android test setup.


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