[ASan/Win] Print out a big warning and continue without checking for success if SymInitialize() fails

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215203 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Determine which compiler-rt libraries are supported on
a given platform in a top-level CMakeLists.txt to use it both
in lib/ and in test/ subdirectories. Move architecture/platform
checks to config-ix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215247 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup Android tests build rules

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215264 91177308-0d34-0410-b5e6-96231b3b80d8
builtins: correct __umodsi3, __udivsi3 on ARM

When building the builtins for a modern CPU (idiv support), __umodsi3 was
completely incorrect as it would behave as __udivmosi3, which takes a tertiary
parameter which is a pointer.

__udivsi3 was also incorrect, returning the remainder in r1.  Although this
would not result in any crash or invalid behaviour as r1 is a caller saved
register in AAPCS, this is unnecessary.  Simply perform the division ignoring
the remainder.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215295 91177308-0d34-0410-b5e6-96231b3b80d8
builtins: add signature to some assembly routines

Add a helpful description and a signature for the functions implemented in
assembly for the integral math routines.  NFC.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215296 91177308-0d34-0410-b5e6-96231b3b80d8
Fix build on some architectures caused by r215247.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215380 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add new options for asan_symbolize.py script.

The patch adds new features in asan-symbolizer script which are helpful for using ASan on embedded systems:

1) add cross-compile prefix for binutils
2) define path to sysroot with sanitized binaries

Features are enabled by command line options.
The patch also extends command line interface with help option.

Reviewed in http://reviews.llvm.org/D4703.

Patch by Maria Guseva!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215381 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Fix PR18987: warning about overriding '/MD' with '/MT'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215435 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Use more appropriate return types for strlen/wcslen to avoid MSVC warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215436 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the CMake build when setting MACOSX_DEPLOYMENT_TARGET

If we don't reset CMAKE_OSX_DEPLOYMENT_TARGET, it will end up in
CFLAGS together with the -mmacosx-version-min that we set,
and the compiler errors about the conflict.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215468 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Kill deprecated allocator interfaces in ASan, MSan and TSan in favor of
a unified interface in <sanitizer/allocator_interface.h>.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215469 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Make disable_coredump a common flag and use it in TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215479 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Share the code the setup code calling getrlim/setrlim with sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215481 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Disable coredump for 64-bit binaries.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215482 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Add returns-nonnull sanitizer.

Summary:
This patch adds a runtime check verifying that functions
annotated with "returns_nonnull" attribute do in fact return nonnull pointers.
It is based on suggestion by Jakub Jelinek:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140623/223693.html.

Test Plan: regression test suite

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215485 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix unaligned memory access routine
It was possimitically handling an aligned 8-byte access as 2 4-byte accesses.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215546 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Mark tests that require -MT asan_dll_thunk as such

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215638 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Slightly update&relax test expectations to work with both -MT and -MD (in progress, PR20214) CRTs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215641 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Remove old, unused and non-functional code that will be re-written soon

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215707 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore

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