Fix -Werror build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204139 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: lazily initialize deadlock detector runtime
this is necessaary because dlsym can call malloc, which can lock mutexes that we intercept



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204141 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Build compiler-rt libraries with -std=c++11

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204145 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: add ability to ignore destruction of global mutexes


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204146 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: addrhashmap: fix bug with initialization of addresses in add array



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204148 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: print 2 stacks per deadlock edge



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204149 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deadlock detector: add deadlock detector flags
the first flags is to enable printing of the second stack per edge



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204150 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Origin tracking with history, compiler-rt part.

Compiler-rt part of MSan implementation of advanced origin tracking,
when we record not only creation point, but all locations where
an uninitialized value was stored to memory, too.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204152 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix malloc/munmap mismatch



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204154 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix a bug in AdjustStackSize().

If the user requests OS default stack size, do not adjust it to our minimum
stack size (which is usually much less than the OS default).

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


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204182 91177308-0d34-0410-b5e6-96231b3b80d8
profile: Include the function hash in PGO profiles

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204185 91177308-0d34-0410-b5e6-96231b3b80d8
Don't take short cuts trying to avoid conditionals. This leads to
negative shift amounts and/or shifts wider than the type. VAX traps on
the former, X86 and other platforms produce incorrect results on the
latter.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204193 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Print mmap errno/GetLastError in a readable and consistent way

Reviewed at http://llvm-reviews.chandlerc.com/D3107

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204218 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] deadlock detector: a) initial support for suppressions, b) be more robust in case we failed to extract a stack trace for one of the locks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204225 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix large stack frame in deadlock detector

In member function 'virtual void __sanitizer::DD::MutexBeforeLock(__sanitizer::DDCallback*, __sanitizer::DDMutex*, bool)':
error: the frame size of 544 bytes is larger than 512 bytes [-Werror=frame-larger-than=]

The code is now [arguably] better as well.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204227 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: preliminary support for Go deadlock detector



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204228 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix line numbers in test.

This corresponds to a fix in llvm::SplitBlockAndInsertIfThen.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204229 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix copy-pasted comment



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