summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* [asan] Remove dependency of tests on runtime library in standalone build.Evgeniy Stepanov2014-06-091-2/+4
| | | | llvm-svn: 210465
* [msan] Intercept __strto*_internal.Evgeniy Stepanov2014-06-092-24/+44
| | | | | | | This should fix strtoimax/strtoumax on newer glibc. https://code.google.com/p/memory-sanitizer/issues/detail?id=36 llvm-svn: 210463
* Fix line numbers for code inlined from __nodebug__ functions.Evgeniy Stepanov2014-06-091-1/+1
| | | | | | | | | | | | | | Instructions from __nodebug__ functions don't have file:line information even when inlined into no-nodebug functions. As a result, intrinsics (SSE and other) from <*intrin.h> clang headers _never_ have file:line information. With this change, an instruction without !dbg metadata gets one from the call instruction when inlined. Fixes PR19001. llvm-svn: 210459
* [msan] Add a test for mmx.packuswb.Evgeniy Stepanov2014-06-091-0/+22
| | | | llvm-svn: 210458
* [msan] Simplify tests.Evgeniy Stepanov2014-06-091-18/+25
| | | | llvm-svn: 210457
* [asan] Add malloc_usable_size to android malloc dispatch.Evgeniy Stepanov2014-06-091-8/+10
| | | | llvm-svn: 210452
* [TSan] Make lit-tests more self-containedAlexey Samsonov2014-06-068-43/+30
| | | | llvm-svn: 210370
* tsan: fix argument passing in Go interfaceDmitry Vyukov2014-06-061-3/+3
| | | | | | Go calling convention does not support bools (it probably works, but uptrs are safer) llvm-svn: 210365
* Un-xfail passing ARM Android testsGreg Fitzgerald2014-06-0620-20/+20
| | | | llvm-svn: 210360
* tsan: fix CurrentStackIdDmitry Vyukov2014-06-061-14/+28
| | | | | | FuncEnter adds FuncEnter entry to trace that nobody removes later llvm-svn: 210359
* tsan: fix mutex in Go modeDmitry Vyukov2014-06-061-1/+1
| | | | | | In Go it's legal to unlock from a different goroutine. llvm-svn: 210358
* tsan: disable reporting of mutex misuses in GoDmitry Vyukov2014-06-061-0/+4
| | | | llvm-svn: 210353
* tsan: minor optimizations for Go runtimeDmitry Vyukov2014-06-061-1/+2
| | | | llvm-svn: 210351
* tsan: fix out-of-bounds access in Go runtimeDmitry Vyukov2014-06-061-5/+3
| | | | | | FuncEntry can resize the shadow stack, while "thr->shadow_stack_pos[0] = pc" writes out-of-bounds. llvm-svn: 210349
* tsan: fix mapping of meta shadow for GoDmitry Vyukov2014-06-061-8/+18
| | | | | | | Go maps heap and data+bss, these regions are not adjacent. data+bss is mapped first. llvm-svn: 210348
* tsan: flush metamap per-thread cache when thread finishesDmitry Vyukov2014-06-061-0/+1
| | | | llvm-svn: 210347
* tsan: fix clang warning:Dmitry Vyukov2014-06-061-0/+2
| | | | | | comparison of unsigned expression >= 0 is always true llvm-svn: 210346
* tsan: fix Go build with TSAN_COLLECT_STATSDmitry Vyukov2014-06-061-2/+2
| | | | | | Go does not have cur_thread function. llvm-svn: 210345
* tsan: allow to build Go runtime with clang + enable SSE3Dmitry Vyukov2014-06-061-5/+7
| | | | llvm-svn: 210344
* [msan] Fix wrong endianness when printing shadow.Evgeniy Stepanov2014-06-063-1/+25
| | | | llvm-svn: 210335
* [msan] Partial revert of r210331.Evgeniy Stepanov2014-06-061-1/+1
| | | | | | Bots did not like it. llvm-svn: 210332
* [msan] Better diagnostic for invalid origin id.Evgeniy Stepanov2014-06-064-7/+8
| | | | llvm-svn: 210331
* sanitizer: document missing macroDmitry Vyukov2014-06-061-0/+1
| | | | llvm-svn: 210329
* [asan] Make ReplaceSystemMalloc optional on Android.Evgeniy Stepanov2014-06-063-6/+14
| | | | | | | Don't fail if __libc_malloc_dispatch is missing; continue running with normal linux interceptors instead. llvm-svn: 210322
* [asan] initialize fake_stack_ to 0 before we call SetThreadStackAndTls, ↵Kostya Serebryany2014-06-061-1/+3
| | | | | | because that may actually try to use fake_stack_ (still don't know how). Yet another case where we desperately want https://sourceware.org/glibc/wiki/ThreadPropertiesAPI llvm-svn: 210315
* [TSan] Reduce the stack frame size of ReportDeadlockAlexey Samsonov2014-06-051-1/+1
| | | | llvm-svn: 210301
* [asancov] Faster coverage in memory-mapped mode.Evgeniy Stepanov2014-06-053-21/+26
| | | | | | | | Use caller pc of __sanitizer_cov_module_init to figure out when 2 sequential calls are from the same module; skip .sancov.map file update in this case. llvm-svn: 210267
* [asan] asan_device_setup: extend search pathEvgeniy Stepanov2014-06-051-2/+2
| | | | | | In standalone build asan-rt is stored in yet another path. llvm-svn: 210259
* [asan] Add 'asan' to asan test deps.Evgeniy Stepanov2014-06-051-1/+1
| | | | | | | | This sound like a good idea in general. Also, without this on Android we get add_lit_testsuite() with empty DEPENDS list, and it does not work well. llvm-svn: 210257
* [asan] Fix lit tests setup on Android.Evgeniy Stepanov2014-06-051-1/+1
| | | | | | Pass cflags in a way that's compatible with standalone compiler-rt build. llvm-svn: 210256
* [asan] Use -pthread instead of -lpthread in tests.Evgeniy Stepanov2014-06-052-3/+3
| | | | llvm-svn: 210255
* Remove's uses of sys/timeb.h for Android.Dan Albert2014-06-051-1/+3
| | | | | | Android is removing sys/timeb.h because it was removed in POSIX 2008. llvm-svn: 210235
* [Deadlock detector] Fix CMake build rules for shared runtimeAlexey Samsonov2014-06-051-12/+9
| | | | llvm-svn: 210232
* [asan] Add install rule for Android runtimeGreg Fitzgerald2014-06-041-0/+3
| | | | llvm-svn: 210216
* [dfsan] Fix the declaration of dfsan_add_label.Peter Collingbourne2014-06-042-0/+8
| | | | llvm-svn: 210202
* [sanitizer] Make LSan/MSan/TSan honor the "color" flag.Sergey Matveev2014-06-043-6/+6
| | | | | | Based on a patch by Stephan Bergmann. llvm-svn: 210199
* [sancov] Handle fork.Evgeniy Stepanov2014-06-047-8/+155
| | | | | | | | | | Reset coverage data on fork(). For memory-mapped mode (coverage_direct=1) this helps avoid loss of data (before this change two processes would write to the same file simultaneously). For normal mode, this reduces coverage dump size, because PCs from the parent process are no longer inherited by the child. llvm-svn: 210180
* Disable unstable test on ARMGreg Fitzgerald2014-06-041-1/+1
| | | | llvm-svn: 210140
* [sancov] Delay opening dump file until the first module constructor.Evgeniy Stepanov2014-06-031-8/+9
| | | | llvm-svn: 210109
* [sancov] Handle spaces in module name.Evgeniy Stepanov2014-06-031-2/+1
| | | | llvm-svn: 210108
* [asan] enable detect_odr_violation=2; ↵Kostya Serebryany2014-06-032-1/+3
| | | | | | https://code.google.com/p/address-sanitizer/wiki/OneDefinitionRuleViolation . This feature has been working quite well so far, found a few bugs and zero false positives. The main problem is that there could be lots of true positives and users will have to disable this checking until the bugs are fixed. llvm-svn: 210106
* [sancov] Fix map update logic on Android.Evgeniy Stepanov2014-06-034-28/+89
| | | | | | | dlopen()/dlclose() are not interceptable on Android, so we update .sancov.map in module constructor callbacks. llvm-svn: 210098
* Fix Android build after r210053Greg Fitzgerald2014-06-031-13/+15
| | | | llvm-svn: 210069
* Cleanup Android build and provide better diagnosticsGreg Fitzgerald2014-06-021-15/+24
| | | | | | | | | | No longer need to set ANDROID if COMPILER_RT_TEST_TARGET_TRIPLE is arm-linux-androideabi. No need to set ANDROID_COMMON_FLAGS. These flags are already in CMAKE_CXX_FLAGS which are used in try_compile(). llvm-svn: 210053
* [ASan Win] Manually call __asan_init early in the DLL initialization process ↵Timur Iskhodzhanov2014-06-022-1/+39
| | | | | | to avoid a null function call in cout/cerr constructors llvm-svn: 210030
* [Sanitizer/interception Win] Break into the debugger on unknown instructionsTimur Iskhodzhanov2014-06-021-1/+2
| | | | llvm-svn: 210028
* [ASan Win] Fix memset interception in DLLsTimur Iskhodzhanov2014-06-022-0/+22
| | | | llvm-svn: 210027
* [asan] Default to memory-mapped coverage on Android.Evgeniy Stepanov2014-06-021-1/+1
| | | | | | The alternative (writing coverage at process exit) is nearly useless there. llvm-svn: 210024
* [msan] Handle x86 vector pack intrinsics.Evgeniy Stepanov2014-06-021-0/+21
| | | | llvm-svn: 210020
* [asan] Improve vDSO check in AsanCheckDynamicRTPrereqs; patch by Yuri GribovKostya Serebryany2014-06-021-0/+4
| | | | llvm-svn: 210012
OpenPOWER on IntegriCloud