Remove extra semicolon [-Wpedantic]

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217407 91177308-0d34-0410-b5e6-96231b3b80d8
[asan-assembly-instrumentation] Added end-to-end test for proper stack unwind for functions with inline assembly.

Summary: [asan-assembly-instrumentation] Added end-to-end test for proper stack unwind for functions with inline assembly.

Reviewers: eugenis

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217487 91177308-0d34-0410-b5e6-96231b3b80d8
Make compiler-rt tests work with relocatable SDKs on OS X

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



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217523 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Add halt_on_error runtime flag

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217535 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Add noinline attribute to handlers that should never return.

FIx a problem reported by Jakub Jelinek: don't do early-exit from fatal
UBSan handlers: even if source location is disabled (i.e. acquired by
some other thread), we should continue the execution to make sure that:
a) some thread will print the error report before calling Die().
b) handler marked as noreturn will indeed not return.

Explicitly add "Die()" calls at the end of all fatal handlers to be
sure UBSan handlers don't introduce UB themselves.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217542 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Get rid of Symbolizer::Get() and Symbolizer::GetOrNull().

We may as well just use Symbolizer::GetOrInit() in all the cases.
Don't call Symbolizer::Get() early in tools initialization: these days
it doesn't do any important setup work, and we may as well create the
symbolizer the first time it's actually needed.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217558 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Use common flags in the same way as all the other sanitizers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217559 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Preserve existing LD_PRELOAD setting on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217584 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Parse common flags from UBSAN_OPTIONS runtime variable even if
UBSan is combined with ASan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217616 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r217616. Problems and complexity it introduces negate its benefit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217652 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Rename asan_win_uar_thunk.lib to asan_win_dynamic_runtime_thunk.lib

It turned out that we have to bridge more stuff between the executable
and the ASan RTL DLL than just __asan_option_detect_stack_use_after_return.
See PR20918 for more details.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217673 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Fix PR20918 -- SEH handler doesn't work with the MD runtime


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217679 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Don't overflow when calculating memory range that should be dumped

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217703 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use growable vector for atexit callbacks
Most real programs setup much more than 1024 callbacks.



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

https://code.google.com/p/memory-sanitizer/issues/detail?id=64


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217754 91177308-0d34-0410-b5e6-96231b3b80d8
Port the variadic std::tr1::tuple hack for building gtest for MSVC2012 to ASAN tests.

Summary: This is copied from llvm/utils/unittest/CMakeLists.txt.

Test Plan: This partly enables building ASAN tests with MSVC2012.

Reviewers: timurrrr

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217762 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid calling strtoll and atoll in asan_str_test.cc on Windows for now

Summary:
These two functions are unavailable on MSVC2012, which breaks building the
ASAN tests with MSVC2012.  Since the tests required to run these functions
are disabled on Windows for now, avoid building them to fix the MSVC2012
builds.

Test Plan: This is needed in order to fix building the ASAN tests with MSVC2012.

Reviewers: timurrrr

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217763 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Delay system log initialization on Android.

Writing to system log requires libc interceptors to be initialized.
Fixes crashes with verbosity=1 on newer Android builds.


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

This test has a chance to hit some other random allocation
and get neither heap overflow nor SEGV.

Relax test condition to only check that there is no internal CHECK failure.


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