summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 3.2 release branch r167700release_32Pawel Wodnicki2012-11-120-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_32@167701 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: intercept gettimeofday()Dmitry Vyukov2012-11-093-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167630 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] add sanity checks for communication with external symbolizerAlexey Samsonov2012-11-096-1/+51
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167617 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: switch to new memory_order constants (ABI compatible)Dmitry Vyukov2012-11-092-13/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167614 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add __tsan_atomicX_compare_exchange_val() functionDmitry Vyukov2012-11-092-0/+39
| | | | | | | | It's easier to call from compiler module. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167611 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a possible underscore before the wrappers to the output expectations for ↵Alexander Potapenko2012-11-092-2/+2
| | | | | | Darwin git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167610 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Build all sanitizer runtime libraries with debug info (with ↵Alexey Samsonov2012-11-081-0/+8
| | | | | | -gline-tables-only, if it's available) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167584 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add range access functions for GoDmitry Vyukov2012-11-081-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167580 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] avoid including <new> header in ASan runtimeAlexey Samsonov2012-11-081-11/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167579 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: change TSAN_OPTIONS->GORACE in build script as wellDmitry Vyukov2012-11-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167578 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] try to fix Windows bot - include stdlib.h for abort/_exit functionsAlexey Samsonov2012-11-081-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167577 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: use GORACE env for options for GoDmitry Vyukov2012-11-084-3/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167575 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: do not sleep at exit if there are no other threadsDmitry Vyukov2012-11-074-1/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167533 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add flag to suppress all reports (useful for benchmarking)Dmitry Vyukov2012-11-074-1/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167532 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: more precise handling of finalizersDmitry Vyukov2012-11-076-23/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167530 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: slightly relax requirements for lazy shadow memory (can overlap and ↵Dmitry Vyukov2012-11-063-15/+8
| | | | | | | | | | may not be properly aligned) it's problematic on windows where allocation granularity is much larger than page size git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167466 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: lazily allocate shadow for GoDmitry Vyukov2012-11-069-33/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167464 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix debug outputDmitry Vyukov2012-11-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167463 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: better diagnostics for failed mmap()Dmitry Vyukov2012-11-061-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167462 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix compiler warningDmitry Vyukov2012-11-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167458 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: windows platform supportDmitry Vyukov2012-11-061-0/+82
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167457 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: update script to support windowsDmitry Vyukov2012-11-061-22/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167456 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add shadow mapping for windowsDmitry Vyukov2012-11-061-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167455 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add missing function for windowsDmitry Vyukov2012-11-061-0/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167454 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix constant typesDmitry Vyukov2012-11-061-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167453 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: windows: less includes, better diagnostics for failed VirtualAlloc(), ↵Dmitry Vyukov2012-11-061-4/+12
| | | | | | implement sched_yield() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167452 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: don't release disabled clocksDmitry Vyukov2012-11-062-1/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167451 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: define missing compier macros for windowsDmitry Vyukov2012-11-061-6/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167450 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix non-msvc windows buildDmitry Vyukov2012-11-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167449 91177308-0d34-0410-b5e6-96231b3b80d8
* tasn: improve sanitizer_internal_defs.hDmitry Vyukov2012-11-061-4/+1
| | | | | | | | The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167448 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix windows buildDmitry Vyukov2012-11-061-3/+3
| | | | | | | | __declspec is not _WIN32, it's _MSC_VER git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167447 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix Go buildDmitry Vyukov2012-11-061-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167446 91177308-0d34-0410-b5e6-96231b3b80d8
* Update compiler-rt tests to match flag renaming/deprecation in Clang.Richard Smith2012-11-0623-45/+45
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167434 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to ↵Alexey Samsonov2012-11-025-9/+28
| | | | | | determine whether error reports are printed to terminal git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167298 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] fix printf unittest on 32-bit archAlexey Samsonov2012-11-021-4/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167297 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] move unit test for Printf from tsan to sanitizer_commonAlexey Samsonov2012-11-024-15/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167296 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] finally remove TsanPrintf in favor of Printf from sanitizer_commonAlexey Samsonov2012-11-0217-151/+111
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167294 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Use kStderrFd constant instead of hardcoded 2Alexey Samsonov2012-11-024-11/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167291 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer]: add __sanitizer_set_report_fd function to alter file descriptor ↵Alexey Samsonov2012-11-022-1/+20
| | | | | | for error reports git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167290 91177308-0d34-0410-b5e6-96231b3b80d8
* Flag -ccc-clang-cxx was removed in r166986, remove it from compiler-rt lit ↵Alexey Samsonov2012-10-303-4/+3
| | | | | | configs git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167010 91177308-0d34-0410-b5e6-96231b3b80d8
* Consistently declare 'extern "C"' variable in namespace __ubsan. No ↵Richard Smith2012-10-291-1/+2
| | | | | | functionality change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166966 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't define an extern "C" variable in its first declaration, to appease aRichard Smith2012-10-292-8/+15
| | | | | | | | bogus gcc warning. Take this opportunity to move the declaration to the header, since it's part of the API of this file. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166965 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a compiler warning in internal_memmove.Alexander Potapenko2012-10-261-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166775 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the internal_memmove() implementation that used to skip src[0] if dst < src.Alexander Potapenko2012-10-263-2/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166774 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] don't run hacky test for __asan_get_free_bytes() on 32-bitsAlexey Samsonov2012-10-261-15/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166771 91177308-0d34-0410-b5e6-96231b3b80d8
* In the dynamic runtime on Mac OS, do not call internal_strdup() before ↵Alexander Potapenko2012-10-261-0/+8
| | | | | | | | | | __asan_init(). This may result in a crash at startup. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=123. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166768 91177308-0d34-0410-b5e6-96231b3b80d8
* -fcatch-undefined-behavior checking for appropriate vptr value: library side.Richard Smith2012-10-257-4/+397
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166660 91177308-0d34-0410-b5e6-96231b3b80d8
* Build ASan runtime for ARM/Android.Evgeniy Stepanov2012-10-245-3/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166559 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Rename ReplaceCFAllocator to MaybeReplaceCFAllocator.Alexander Potapenko2012-10-243-20/+14
| | | | | | | Replace the allocator only if the replace_cfallocator flag is set (in some cases it wasn't checked) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166550 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Use internal_memmove() in both static and dynamic runtime libraries ↵Alexander Potapenko2012-10-241-3/+1
| | | | | | if asan_inited != 0. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166549 91177308-0d34-0410-b5e6-96231b3b80d8