[UBSan][MIPS] Adding support for MIPS64

No MIPS64 architecture dependant code

reviewed by : samsonov
submitted by: sagar

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224239 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan][MIPS] Adding support of MIPS64 in UBSan testing

On mips64 addresses are 40-bit. Where as a 48 bit address is used in TypeCheck/misaligned.cpp.
Using regular expression for that address.

reviewed by : samsonov
submitted by: sagar

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224242 91177308-0d34-0410-b5e6-96231b3b80d8
[ubsan][arm] supporting misaligned testcase

After previous commit: http://reviews.llvm.org/rL224242, misaligned testcase is now supported on ARM also

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224243 91177308-0d34-0410-b5e6-96231b3b80d8
profile: Add the relevant parts of lib/profile to cc_kext on darwin

Patch by Lawrence D'Anna. Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224270 91177308-0d34-0410-b5e6-96231b3b80d8
Update lib/profile tests for metadata assembly change

Running the upgrade script from PR21532.  Hopefully this will unstick
compiler-rt bots [1] after r224257.

[1]: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_check/181/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224276 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] introduce __sanitizer_set_death_callback, deprecate __asan_set_death_callback

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224286 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Allow to atomically modify malloc_context_size at runtime.

Summary:
Introduce __asan::malloc_context_size atomic that is used to determine
required malloc/free stack trace size. It is initialized with
common_flags()->malloc_context_size flag, but can later be overwritten
at runtime (e.g. when ASan is activated / deactivated).

Test Plan: regression test suite

Reviewers: kcc, eugenis

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224305 91177308-0d34-0410-b5e6-96231b3b80d8
Fix data symbolization with libbacktrace. Patch by Jakub Jelinek!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224308 91177308-0d34-0410-b5e6-96231b3b80d8
Add an MACOS_VERSION_UNKNOWN_NEWER enum value for OS X versions above 10.10.

We recently had a broken version check because an newer OS X version is treated as MACOS_VERSION_UNKNOWN which is less than all the defined values. Let's have a separate enum value for unknown but newer versions, so the ">=" and "<=" version checks still work even in upcoming OS X releases.

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



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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224326 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] new flag: hard_rss_limit_mb

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224353 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes wrong -march=aarch64 option in compiler-rt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224362 91177308-0d34-0410-b5e6-96231b3b80d8
Fix Win build after r224353: void function returning zero.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224370 91177308-0d34-0410-b5e6-96231b3b80d8
Fix test cases given Clang's improved location information.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224387 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Introduce SetCanPoisonMemory() function.

SetCanPoisonMemory()/CanPoisonMemory() functions are now used
instead of "poison_heap" flag to determine if ASan is allowed
to poison the shadow memory. This allows to hot-patch this
value in runtime (e.g. during ASan activation) without introducing
a data race.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224395 91177308-0d34-0410-b5e6-96231b3b80d8
Rename asan_allocator2.cc to asan_allocator.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224396 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Re-structure the allocator code. NFC.

Introduce "Allocator" object, which contains all the bits and pieces
ASan allocation machinery actually use: allocator from sanitizer_common,
quarantine, fallback allocator and quarantine caches, fallback mutex.

This step is a preparation to adding more state to this object. We want
to reduce dependency of Allocator on commandline flags and be able to
"safely" modify its behavior (such as the size of the redzone) at
runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224406 91177308-0d34-0410-b5e6-96231b3b80d8
basic changes to support lsan for mips
change lsan allocator for mips