-fcatch-undefined-behavior: Runtime library support for trapping conversions to or
from a floating-point type where the source value is not in the range of
representable values of the destination type.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165844 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the bootstrap of CompilerRT with host compilers that don't support
emulating 128-bit arithmetic on 32-bit x86 targets. This should get the
bootstrap back for GCC 4.6 at least.

Suggestions on better ways to do the detection here are welcome...

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165863 91177308-0d34-0410-b5e6-96231b3b80d8
Use a better test for __int128 support, which works on old GCC versions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165912 91177308-0d34-0410-b5e6-96231b3b80d8
Provide a slightly more helpful diagnostic if -fcatch-undefined-behavior finds
a problem with __int128 arithmetic but the runtime was not built with __int128
support.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165913 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] change the asan output slightly to avoid user confusion: a) add ':' after 'AddressSanitizer' and b) changed 'crashed' to 'SEGV' 

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165934 91177308-0d34-0410-b5e6-96231b3b80d8
Implement internal_memmove.
Use internal_memmove() and internal_memcpy() in the memcpy() and memmove() wrappers
when building the dynamic runtime (OS X only), to work around a bug in resolver functions wrapping.
See also http://code.google.com/p/address-sanitizer/issues/detail?id=116



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165939 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6.

See PR14013.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165963 91177308-0d34-0410-b5e6-96231b3b80d8
Un-revert r164907 and r164902 (+ follow-ups), 10.6 build fix to follow.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165986 91177308-0d34-0410-b5e6-96231b3b80d8
platform/clang_darwin: Drop an x86_64 slice into cc_kext_ios5.
 - This doesn't get used, but it is a simple workaround for PR14013.

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

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166026 91177308-0d34-0410-b5e6-96231b3b80d8
Commit a leftover file from r166026: Add MACOS_VERSION_MOUNTAIN_LION.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166028 91177308-0d34-0410-b5e6-96231b3b80d8
Do not call ReplaceCFAllocator() before __CFInitialize(), otherwise crashes are possible on 10.8.
Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=122


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166029 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix gcc warnings while building asan-rt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166093 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] symbolizer: increase the maximal number of shared libraries to 16K

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166098 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] don't use attribute no_address_safety_analysis if it's unknown to compiler

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166099 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' instead of 'char* strchr(const char*, int)'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166101 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] added a test for a bug in asan at -O0 introduced by r165936 (making asan a FunctionPass). The test is not actually enabled for -O0 yet (since it fails)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166103 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] unit tests: Move main() to a separate file. Fix lint

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