builtins: rework use of DEFINE_COMPILERRT_THUMB_FUNCTION

This is simply to help clarity of the code.  The functions are built as thumb
only if Thumb2 is available (__ARM_ARCH_ISA_THUMB == 2).  Sink the selection
into the location of the definition and make DEFINE_COMPILERRT_THUMB_FUNCTION
always define a thumb function while DEFINE_COMPILERRT_FUNCTION always selects
the default.

Since the .thumb_func directive is always available (at least on Linux, Windows,
and BSD), sinking the macro right into the macro works just as well.

No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219182 91177308-0d34-0410-b5e6-96231b3b80d8
builtins: add missed change from previous commit

The macro rework was missing a trailing SEPARATOR for the .thumb_func, resulting
in assembly failures.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219183 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed asan-asm-stacktrace-test.cc

Summary: Fixed asan-asm-stacktrace-test.cc. Now it's supported on x86_64 and added test run when no debug info is generated.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219200 91177308-0d34-0410-b5e6-96231b3b80d8
Run profile tests on FreeBSD

FreeBSD does not have libdl, so set it via lit.cfg instead of the test
input, as with asan.  Also remove it from Darwin test runs - it's not
necessary, but harmless there.

Add FreeBSD to the list of hosts to test.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219227 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid bashisms and switch to /bin/sh

Bash may not be installed on some systems by default, like FreeBSD.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219231 91177308-0d34-0410-b5e6-96231b3b80d8
Custom wrappers for DFSanitizing sprintf & snprintf.

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



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219293 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Bump the minimum OSX version required to run ASan to 10.7.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219302 91177308-0d34-0410-b5e6-96231b3b80d8
Separating ARM/AArch64 Compiler-RT tests

Makes sure ARM bots don't run AArch64 and vice-versa, since not all
AArch64 systems can run AArch32 and no ARM hardware can run AArch64.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219304 91177308-0d34-0410-b5e6-96231b3b80d8
AArch64: add support for ARM64 iOS versions of compiler-rt.

Just a dummy directory and a few sane choices in the Darwin SDK.

rdar://problem/18575597

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219323 91177308-0d34-0410-b5e6-96231b3b80d8
AArch64: don't just hack arm64 support into compiler-rt.

We should check whether the compiler & linker support ARM64 before attempting
to build a version of compiler-rt for it. Otherwise things will go badly.

rdar://problem/18575597

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219332 91177308-0d34-0410-b5e6-96231b3b80d8
Remove bashisms and switch to /bin/sh

On a default FreeBSD install Bash is not installed and fdescfs is not
mounted.  Use plain sh functionality instead.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219333 91177308-0d34-0410-b5e6-96231b3b80d8
Mark sanitizer tests XFAIL on ARMv7

ASAN, UBSAN and profile tests that don't work with arm-linux-gnueabi and
android also don't work on armv7l-linux-gnueabihf. Some of the tests have
known causes, others not yet. In order to get a green bot, I'm disabling
those tests for now and will investigate when the priority rises.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219343 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix references to libc entities in tsan_interceptors.cc on FreeBSD
Differential Revision: http://reviews.llvm.org/D5663


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219395 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizers] Intercept dlopen() and dlclose() on FreeBSD
Differential Revision: http://reviews.llvm.org/D5664


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219396 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the blacklist2.cc test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5665


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219397 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the global_race tests to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5668


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219398 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the signal_errno.cc and signal_malloc.cc tests to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5669


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219399 91177308-0d34-0410-b5e6-96231b3b80d8
XFAIL some more sanitiser ARMv7l tests

Some more tests failing on the ARMv7 buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219404 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Make the user_fopen.cc and user_malloc.cc tests Linux-specific
Differential Revision: http://reviews.llvm.org/D5670


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219478 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix comments in the user_fopen.cc and user_malloc.cc tests
Related revision: http://reviews.llvm.org/D5670


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