aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-07Creating release_33 branchBill Wendling
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_33@181277 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-06[msan] Common flags in MSan.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181194 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-06[asan] Common flags in ASan.Sergey Matveev
Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181193 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-03I was wrong in my testing.Bill Wendling
There isn't a speedup when using unbuffered I/O. It slows it down in fact. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181060 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-03Use unbuffered I/O. This reduces the runtime by about half. Our ↵Bill Wendling
implementation is now only about 5 times slower than gcc's. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180980 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30Rewrite sw_vers makefile check to avoid error message on Linux.Bob Wilson
When building compiler-rt on Linux, the "which sw_vers" check fails and writes an error message into the build log. Apparently on Solaris "which" writes the error message to stdout, so that the current test won't even work properly. As far as I know sw_vers always lives in /usr/bin, so just check for it there instead of using "which". git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180792 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30asan: fix windows buildDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180788 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30tsan: comment out debug output in testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180787 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30asan/tsan: fix printf(), on the second pass it prints garbage and crashes on ↵Dmitry Vyukov
random pointer dereference git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180784 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30tsan: fix deadlock detector table (OK to lock sync var mutex during reporting)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180782 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30tsan: reverse stack trace for failed CHECK's, this is how we print traces in ↵Dmitry Vyukov
other places git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180781 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-30tsan: add interface functions for unaligned access, e.g. ↵Dmitry Vyukov
__sanitizer_unaligned_load16 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180780 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-29asna/tsan/msan: fix wait() interceptors to allow NULL argumentsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180703 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-26Revert r180599 "[sanitizer] Clear LD_PRELOAD when forking an external ↵Sergey Matveev
symbolizer." git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180602 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-26[sanitizer] Clear LD_PRELOAD when forking an external symbolizer.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180599 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-25Add -fno-rtti to ASan runtime cflags on Android.Evgeniy Stepanov
Otherwise we are picking up an extra libstdc++ dependency. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180265 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-25[ASan] Add allow_user_segv_handler to let users override SEGV handler ↵Alexey Samsonov
installed by ASan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180255 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-25tsan: add a test that used to crash, fixed by r180180.Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180251 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-24tsan: fix stack traces for malloc and freeDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180184 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-24tsan: run tests sequentially otherwise cmake says:Dmitry Vyukov
make[3]: make[3]: /bin/sh: ../../../../../bin/clang: Text file busy git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180183 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-24tsan: disable getpwuid_r() and glob64() interceptors under tsan, because ↵Dmitry Vyukov
they cause interceptor recursion if user intercepts fopen() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180182 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-24tsan: fix crash when data race happens on out-of-bounds accesses.Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180180 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23Use the new iOS deployment target command-line options.Bob Wilson
We now rely on the -mios-simulator-version-min option to identify the iOS simulator target. I'm not sure if there's anything in compiler-rt where that matters, but it's the right thing to do regardless. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180163 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23tsan: support heap starting at 0x04c0 (used in some custom deplyments)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180116 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23tsan: update Go memory mapping, Go now uses 0x00c0 heap baseDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180113 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[sanitizer] Intercept inet_pton and inet_ntop.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180107 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[ASan] Disable strict-init-order checker once we have more than one thread, ↵Alexey Samsonov
as this mode is thread-hostile git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180106 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[MSan] Make a few interface functions accept 'const void *' instead of 'void*'Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180102 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[msan] Unpoison the result of posix_memalign.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180101 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23Revert r180082 and add a test for SetEnv functionAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180098 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[ASan] Make wait.cc more Darwin-compatible: fix the header name and the ↵Alexander Potapenko
CHECK patterns. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180097 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.Alexander Potapenko
See https://code.google.com/p/address-sanitizer/issues/detail?id=131. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180093 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[sanitizer] Intercept getgrnam{_r}, getgrgid{_r}.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180091 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[msan] Allow clock_getres(, 0).Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180090 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-23[Sanitizer] Delete unused functionAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180082 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-22[sanitizer] Fix lint.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180012 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-22Improve performance of file I/O.Bill Wendling
The fread / fwrite calls were happening for each timer. However, that could be pretty expensive for a large number of timers. Instead, read and write the timers in one call. This gives ~10% speedup in compilation time. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179990 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-19Fixup for r179843: add missing headerAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179844 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-19[ASan] Make init-order checker allow access to already initialized globals.Alexey Samsonov
This change adds ASan runtime option "strict-init-order" (off by default) that makes init-order checker bark if global initializer accesses any global from different translation unit (even if the latter is already initialized). strict init-order checking doesn't play well with, e.g. LLVM registration machineries, and causes issue https://code.google.com/p/address-sanitizer/issues/detail?id=178. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179843 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-19[TSan] Allocate fd table in user heap instead of using internal allocator. ↵Alexey Samsonov
We need this to catch races on fds. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179841 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-18[Sanitizer] Rework r176802: share code between Printf and Report and ↵Alexey Samsonov
simplify it a bit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179755 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-18[Sanitizer] Don't die in symbolizer if it can't read /proc/self/exe linkAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179754 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-16Wrap macro invocations in braces to supress 'suggest braces around empty ↵Andy Gibbs
body in an ‘if’ statement' warning. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179597 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-16[asan] Fix spelling in asan_rtl.cc Test commit.Sergey Matveev
Reviewers: kcc, glider, samsonov Reviewed By: glider CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D676 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179595 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-16[msan] Fix gcc build of msan_test.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179594 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-16[sanitizer] Implement wait4 and waitpid syscall hooks.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179592 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-15[msan] Fix sigaction test.Evgeniy Stepanov
Restore SIGPROF handler to the original state after the test. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179524 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-15[msan] Really disable replacement new and delete.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179522 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-12[sanitizer] Add syscall handlers to ASan and TSan runtimes.Evgeniy Stepanov
ASan checks addressability of syscall arguments. TSan does nothing for now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179380 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-12[sanitizer] More syscall handler placeholders.Evgeniy Stepanov
This time it's the full list scavenged from syscalls.h Fixed return value type. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179378 91177308-0d34-0410-b5e6-96231b3b80d8