summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* [Sanitizers] Fix internal_lseek() to work on FreeBSDViktor Kutuzov2015-01-082-4/+8
| | | | | | Differential Revision: http://reviews.llvm.org/D6825 llvm-svn: 225443
* XFAIL AArch64 UBsan test, just like ARMRenato Golin2015-01-071-0/+1
| | | | llvm-svn: 225370
* [asan] add flag quarantine_size_mb, deprecate quarantine_sizeKostya Serebryany2015-01-077-19/+53
| | | | llvm-svn: 225337
* [TSan] Fix Go build.Alexey Samsonov2015-01-072-7/+6
| | | | llvm-svn: 225336
* [Sanitizer] Change the runtime flag representation.Alexey Samsonov2015-01-0720-499/+510
| | | | | | | | | | | This mirrors r225239 to all the rest sanitizers: ASan, DFSan, LSan, MSan, TSan, UBSan. Now the runtime flag type, name, default value and description is located in the single place in the .inc file. llvm-svn: 225327
* [asan] add a flag soft_rss_limit_mbKostya Serebryany2015-01-069-6/+132
| | | | llvm-svn: 225323
* [Sanitizer] Improve unit tests in COMPILER_RT_DEBUG=ON mode.Alexey Samsonov2015-01-064-3/+6
| | | | | | | Propagate -DSANITIZER_DEBUG definition to unit tests. Make sure unit tests depend on compiler-rt headers. llvm-svn: 225298
* Use -DSANITIZER_DEBUG=1 if COMPILER_RT_DEBUG=ON, now that PR22083 is fixed.Alexey Samsonov2015-01-061-2/+1
| | | | llvm-svn: 225293
* [ubsan] disable coverage-levels.cc on darwin until we can investigate what's ↵Kostya Serebryany2015-01-061-0/+2
| | | | | | wrong there. llvm-svn: 225281
* [asan] Bump the self-imposed stack limit from 128k to 256k. PowerPC64Jay Foad2015-01-061-1/+1
| | | | | | | | | | | | | | | Linux has 64k pages, so the old limit was only two pages. With ASLR the initial sp might be right at the start of the second page, so the stack will immediately grow down into the first page; and if you use all pages of a limited stack then asan hits a kernel bug to do with how stack guard pages are reported in /proc/self/maps: http://lkml.iu.edu//hypermail/linux/kernel/1501.0/01025.html We should still fix the underlying problems, but in the mean time this patch makes the test work with 64k pages as well as it does with 4k pages. llvm-svn: 225261
* [Sanitizer] Use COMMON_FLAG macro to describe common runtime flags.Alexey Samsonov2015-01-064-183/+143
| | | | | | | | | | | | | | | | | Summary: Introduce a single place where we specify flag type, name, default value, and description. This removes a large amount of boilerplate and ensures we won't leave flags uninitialized. Test Plan: regression test suite Reviewers: kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6851 llvm-svn: 225239
* [ubsan] partially enable -fsanitize-coverage=N with ubsan. It will work as ↵Kostya Serebryany2015-01-062-0/+37
| | | | | | usual in most cases but will not dump coverage on error with -fno-sanitize-recover (that'll be a separate fix) llvm-svn: 225234
* [asan/tracing] write the trace using a sequence of internal_write calls ↵Kostya Serebryany2015-01-061-13/+23
| | | | | | instead of just one (otherwise files of > 2Gb are trunkated). Also a minor adjustment to the trace collection. llvm-svn: 225230
* Add 64-bit multiply functions to iOS arm64 compiler-rt dylibNick Kledzik2015-01-061-0/+1
| | | | llvm-svn: 225226
* tests: correct builtins test if built under -mthumb on ARMSaleem Abdulrasool2015-01-052-11/+28
| | | | | | | | | | | The clear_cache and enable_execute_stack tests attempt to memcpy the definition of a function into a buffer before executing the function. The problem with this approach is that on some targets (ARM with thumb mode compilation, MIPS with MIPS16 codegen or uMIPS), you would use a pointer which is incorrect (it would be off-by-one) due to the ISA selection being encoded into the address. This ensures that the function address is retrieved correctly in all cases. llvm-svn: 225215
* Remove TSAN_DEBUG in favor of SANITIZER_DEBUG.Alexey Samsonov2015-01-0318-38/+54
| | | | llvm-svn: 225111
* Replace DCHECK with DCHECK_LE where appropriate.Alexey Samsonov2015-01-031-4/+4
| | | | llvm-svn: 225110
* [asan/tracing] extend the test a bit more, simplify the tracing code, add a ↵Kostya Serebryany2015-01-032-20/+33
| | | | | | guard page to trace array, fix the trace IDs before dumping llvm-svn: 225108
* [asan] extend coverage-tracing.cc testKostya Serebryany2015-01-031-11/+35
| | | | llvm-svn: 225107
* [asan] simplify the tracing code, make it use the same guard variables as ↵Kostya Serebryany2015-01-032-44/+18
| | | | | | coverage llvm-svn: 225103
* Revert "Revert r224736: "[Sanitizer] Make CommonFlags immutable after ↵Alexey Samsonov2015-01-028-33/+69
| | | | | | | | | | | | | | | | initialization."" Fix test failures by introducing CommonFlags::CopyFrom() to make sure compiler doesn't insert memcpy() calls into runtime code. Original commit message: Protect CommonFlags singleton by adding const qualifier to common_flags() accessor. The only ways to modify the flags are SetCommonFlagsDefaults(), ParseCommonFlagsFromString() and OverrideCommonFlags() functions, which are only supposed to be called during initialization. llvm-svn: 225088
* Revert r224736: "[Sanitizer] Make CommonFlags immutable after initialization."Chandler Carruth2015-01-027-57/+33
| | | | | | | | | | We've got some internal users that either aren't compatible with this or have found a bug with it. Either way, this is an isolated cleanup and so I'm reverting it to un-block folks while we investigate. Alexey and I will be working on fixing everything up so this can be re-committed soon. Sorry for the noise and any inconvenience. llvm-svn: 225079
* Avoid building compiler-rt with LTO.Rafael Espindola2014-12-312-0/+2
| | | | | | | During a LTO we still need to build a compiler_rt with regular object files in the .a. llvm-svn: 225049
* [asan] fix coverage between fork() and exec(): reinitialize the guards after ↵Kostya Serebryany2014-12-303-13/+37
| | | | | | fork() llvm-svn: 225016
* [asan] add flag coverage_pcs. When false, the coverage is not dumped as PCs. ↵Kostya Serebryany2014-12-304-0/+8
| | | | | | Useful e.g. if the user only needs coverage is bitset llvm-svn: 225002
* Reapply debug info changes now that more precise column information is ↵David Blaikie2014-12-302-2/+2
| | | | | | | | | available. (recommitting as the Clang patch is back in with the latest fix - hopefully it sticks) llvm-svn: 225001
* [asan] change _sanitizer_cov_module_init to accept int* instead of int**Kostya Serebryany2014-12-301-8/+11
| | | | llvm-svn: 224999
* Follow-up to r224987: fix a lint warningTimur Iskhodzhanov2014-12-301-1/+1
| | | | llvm-svn: 224988
* [ASan/Win] Sort the list of modules when we fail to reserve the shadow ↵Timur Iskhodzhanov2014-12-301-20/+53
| | | | | | memory range llvm-svn: 224987
* Revert "UBSan: Teach isDerivedFromAtOffset and findBaseAtOffset about vbases"Alexey Samsonov2014-12-302-28/+22
| | | | | | | | This reverts commit r221445. This change leads to false positives reports from -fsanitize=vptr. See original commit thread for more details. llvm-svn: 224972
* Revert "Reapply debug info changes now that r224385 has been recommitted to ↵David Blaikie2014-12-292-2/+2
| | | | | | | | | | | clang (in r224941)" Asserting when building compiler-rt when using a gcc host compiler. Reverting while I investigate. This reverts commit r224942. llvm-svn: 224969
* Remove darwin_fat.mk.Alexey Samsonov2014-12-291-56/+0
| | | | | | | | | | | | | | | | | Summary: Its seems to be replaced by clang_darwin.mk in the Makefile-based build, and is only referenced in unittest scripts, which are broken for a long time now. Test Plan: n/a Reviewers: bob.wilson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6574 llvm-svn: 224946
* Reapply debug info changes now that r224385 has been recommitted to clang ↵David Blaikie2014-12-292-2/+2
| | | | | | (in r224941) llvm-svn: 224942
* [cmake/multilib] Support multilib libdir suffixes by applying theChandler Carruth2014-12-291-1/+2
| | | | | | | | | | LLVM_LIBDIR_SUFFIX variable to one place in the cmake file. This is all that I had to do to get everything from compiler-rt working for me, but there may be more work required if folks are relying on more parts of compiler-rt. Notably, I'm mostly using it for the sanitizers. llvm-svn: 224928
* [sanitizer-common] Fixing the ASan test build failure on OS XKuba Brecka2014-12-291-0/+4
| | | | | | The change in r224819 started using internal_unlink in a sanitizer_common unit test. For some reason, internal_unlink is not defined in sanitizer_mac.cc, fixing that. llvm-svn: 224910
* Escape ? to silence GCC warning about trigraphs.Daniel Jasper2014-12-261-1/+1
| | | | llvm-svn: 224863
* [sanitizer] Treat \r, \n, \t as flag separators.Evgeniy Stepanov2014-12-262-1/+4
| | | | llvm-svn: 224858
* [asan] Fix possibly uninitialized coverage flag.Evgeniy Stepanov2014-12-261-0/+2
| | | | llvm-svn: 224857
* [ASan/Win] Add basic support for MemoryRangeIsAvailable and DumpProcessMap ↵Timur Iskhodzhanov2014-12-262-5/+47
| | | | | | to make it easier to debug startup shadow mapping failures llvm-svn: 224856
* [asan] Bump coverage size limit on 32-bit platforms.Evgeniy Stepanov2014-12-261-1/+1
| | | | | | | This increases the limit from 4M locations to 16M, reserving 64Mb virtual memory. Chrome has >5M unique coverage locations with coverage=3. llvm-svn: 224855
* [asan] Extend coverage test.Evgeniy Stepanov2014-12-261-1/+13
| | | | llvm-svn: 224854
* [asan] Allow enabling coverage at activation.Evgeniy Stepanov2014-12-269-68/+149
| | | | | | | | This is a re-commit of r224838 + r224839, previously reverted in r224850. Test failures were likely (still can not reproduce) caused by two lit tests using the same name for an intermediate build target. llvm-svn: 224853
* [ASan/Win] Suppress error messaging when Abort() is calledTimur Iskhodzhanov2014-12-262-2/+17
| | | | | | This will prevent ASan bots from hanging / timing out llvm-svn: 224852
* Revert r224838, r224839.Evgeniy Stepanov2014-12-269-149/+68
| | | | | | Flaky failures on the build bots. llvm-svn: 224850
* [sanitizer] Tweak sancov.py output.Evgeniy Stepanov2014-12-251-1/+1
| | | | llvm-svn: 224841
* [sanitizer] sancov.py: print status to stderrEvgeniy Stepanov2014-12-251-1/+1
| | | | llvm-svn: 224840
* [asan] Disable __sanitizer_cov_dump registration on Windows.Evgeniy Stepanov2014-12-251-0/+2
| | | | | | Looks like we can't use atexit() during ASan initialization on Windows. llvm-svn: 224839
* [asan] Allow enabling coverage at activation.Evgeniy Stepanov2014-12-259-68/+147
| | | | llvm-svn: 224838
* Simplify allocator_returns_null.cc testTimur Iskhodzhanov2014-12-251-6/+6
| | | | llvm-svn: 224837
* tsan: fix trace initialization during thread id reuseDmitry Vyukov2014-12-251-7/+5
| | | | | | | | | The current code leaves the first event in the trace part uninitialized (from the previous thread). It can cause unpredictable behavior during stack/mutexset restoration. Initialize the first event to a fake harmless memory access. llvm-svn: 224834
OpenPOWER on IntegriCloud