[asan] improve SetErrorReportCallbackTest to actually catch missing functionality in __asan_set_error_report_callback

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162745 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] get rid of AsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] some renaming before we move StackTrace into sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] some renaming before we move StackTrace into sanitizer_common (part 2)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162748 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] CMake build: share more compile flags between instrumented and non-instrumented tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162750 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] more refactoring to move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] even more refactoring to move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162754 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] actually move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162757 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162758 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] actually doing 'svn add' helps

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162759 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix the cmake build (hopefully)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162760 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] one more fix for windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162762 91177308-0d34-0410-b5e6-96231b3b80d8
Some flag cleanup for the sanitizer runtimes.

This hoists most of the CFLAGS into a common variable. It also adds
detection for -Wno-c99-extensions and uses it to silence a pile of
warnings.

Finally, it switches to the proper flag -rdynamic.

With this, the cmake build is warning free on my bootstrap Linux build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162809 91177308-0d34-0410-b5e6-96231b3b80d8
Relocate the external headers provided by ASan and the common sanitizer
library.

These headers are intended to be available to user code when built with
AddressSanitizer (or one of the other sanitizer's in the future) to
interface with the runtime library. As such, they form stable external
C interfaces, and the headers shouldn't be located within the
implementation.

I've pulled them out into what seem like fairly obvious locations and
names, but I'm wide open to further bikeshedding of these names and
locations.

I've updated the code and the build system to cope with the new
locations, both CMake and Makefile. Please let me know if this breaks
anyone's build.

The eventual goal is to install these headers along side the Clang
builtin headers when we build the ASan runtime and install it. My
current thinking is to locate them at:

  <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
  <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
  <prefix>/lib/clang/X.Y/include/sanitizer/...

But maybe others have different suggestions?

Fixing the style of the #include between these headers at least unblocks
experimentation with installing them as they now should work when
installed in these locations.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162822 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix asan's Makefile.old -- our build bot still uses it (hopefully, will soon migrate to cmake completely)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162831 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] fix tsan's Makefile.old -- our build bot still uses it (hopefully, will soon migrate to cmake completely)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162832 91177308-0d34-0410-b5e6-96231b3b80d8
[asan/tsan] use InternalScopedBuffer instead of stack arrays. Use mmap inseted of InternalAlloc in InternalScopedBuffer

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