summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Honor system specific paths of MAN pagesChris Bieneman2015-11-202-8/+8
| | | | | | | | | | | | | | Summary: Caught on NetBSD. Patch by: Kamil Rytarowski (krytarowski) Reviewers: beanz, jroelofs Subscribers: cfe-commits, joerg Differential Revision: http://reviews.llvm.org/D14800 llvm-svn: 253693
* [compiler-rt][cmake] Fix not lipo libclang_rt.cc_kext.a when building on OS XChris Bieneman2015-11-201-81/+79
| | | | | | | | | | | | | | | | Summary: Fix r252525 - cmake configure failed to connect target builtins to target compiler-rt because of early return call. Patch by: Jacky Tsao (cao.zhong1) Reviewers: beanz Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14747 llvm-svn: 253692
* [asan] On OS X, write error reports into Crash Report.Anna Zaks2015-11-202-0/+16
| | | | | | | | The Crash Report is going to add app specific info if it is stored in the magical buffer. Differential Revision: http://reviews.llvm.org/D14791 llvm-svn: 253691
* [compiler-rt] Add internal implementations for strlcat and strlcpyAnna Zaks2015-11-203-0/+80
| | | | | | | | | | The compiler-rt should make use of strlcpy() rather than strncpy(). Using internal_strncpy() may be fine with appropriate bounds checking or enforcement of nul-termination elsewhere, but it's just good practice these days to avoid using strncpy() in new code. A patch by Jeremy Sequoia! Differential Revision: http://reviews.llvm.org/D14714 llvm-svn: 253690
* [asan] Fix the deadlocks introduced by "On OS X, log reports to syslog and ↵Anna Zaks2015-11-207-29/+45
| | | | | | | | | | | | os_trace" commit [asan] On OS X, log reports to syslog and os_trace, has been reverted in r252076 due to deadlocks on earlier versions of OS X. Alexey has also noticed deadlocks in some corner cases on Linux. This patch, if applied on top of the logging patch (http://reviews.llvm.org/D13452), addresses the known deadlock issues. (This also proactively removes the color escape sequences from the error report buffer since we have to copy the buffer anyway.) Differential Revision: http://reviews.llvm.org/D14470 llvm-svn: 253689
* Reapply: [asan] On OS X, log reports to syslog and os_traceAnna Zaks2015-11-2014-46/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When ASan currently detects a bug, by default it will only print out the text of the report to stderr. This patch changes this behavior and writes the full text of the report to syslog before we terminate the process. It also calls os_trace (Activity Tracing available on OS X and iOS) with a message saying that the report is available in syslog. This is useful, because this message will be shown in the crash log. For this to work, the patch makes sure we store the full report into error_message_buffer unconditionally, and it also strips out ANSI escape sequences from the report (they are used when producing colored reports). I've initially tried to log to syslog during printing, which is done on Android right now. The advantage is that if we crash during error reporting or the produced error does not go through ScopedInErrorReport, we would still get a (partial) message in the syslog. However, that solution is very problematic on OS X. One issue is that the logging routine uses GCD, which may spawn a new thread on its behalf. In many cases, the reporting logic locks threadRegistry, which leads to deadlocks. Reviewed at http://reviews.llvm.org/D13452 (In addition, add sanitizer_common_libcdep.cc to buildgo.sh to avoid build failures on Linux.) llvm-svn: 253688
* Speculatively fix MIPS build bot failuresXinliang David Li2015-11-201-0/+9
| | | | | | | | MIPS build bots failed due to lack of 64bit atomic operations. The fix is to disable VP for MIPS target until a better solution is found. llvm-svn: 253687
* Add -disable-llvm-passes for frontend debug info tests.Dehao Chen2015-11-202-11/+6
| | | | | | | | | | | | Summary: The frontend debuginfo tests should not invoke llvm passes which includes add-discriminators that will change the debug info generated by FE. Reviewers: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14848 llvm-svn: 253686
* Revert "FOO"Adrian McCarthy2015-11-2013-218/+5
| | | | | | | | Accidentally commited before I was done. This reverts commit 2ec2da4ee52780582d5e9c88b2e982a688fbdbe1. llvm-svn: 253685
* FOOAdrian McCarthy2015-11-2013-5/+218
| | | | llvm-svn: 253684
* Make skipIf support the not_in function (second attempt).Adrian McCarthy2015-11-201-11/+15
| | | | llvm-svn: 253683
* [TSan] Fix custom scripts that validate TSan on non-standard buildbot.Alexey Samsonov2015-11-202-1/+11
| | | | llvm-svn: 253682
* Speculativley try to fix FreeBSD buildbots, which apparently cannot use stdint.hReid Kleckner2015-11-201-0/+2
| | | | llvm-svn: 253681
* [DebugInfo] Look through type sugar on union types when castingReid Kleckner2015-11-202-1/+18
| | | | | | Fixes PR25584. llvm-svn: 253680
* Remove `lldb.root` and just look for the file we care about.Zachary Turner2015-11-205-4/+4
| | | | llvm-svn: 253679
* Revert r253582: "clang-cl: Make /W4 imply -Wall -Wextra (PR25563)"Hans Wennborg2015-11-204-33/+8
| | | | | | | | | | The patch expanded the flag *at the end*, breaking invocations like: clang-cl /W4 -Wno-unused-parameter Reverting for now. llvm-svn: 253678
* Handle ARMv6-J as an alias, instead of fake architectureArtyom Skrobov2015-11-201-2/+2
| | | | | | | | | | | | Summary: Clang-side update, corresponding to D14755 Reviewers: rengolin, bogden, compnerd Subscribers: aemerson, rengolin, cfe-commits Differential Revision: http://reviews.llvm.org/D14756 llvm-svn: 253677
* Avoid duplicate entry for cortex-a7 in the TargetParser (NFC)Artyom Skrobov2015-11-202-1/+6
| | | | | | | | | | Reviewers: t.p.northover, rengolin Subscribers: aemerson, rengolin, llvm-commits Differential Revision: http://reviews.llvm.org/D14757 llvm-svn: 253676
* Handle ARMv6-J as an alias, instead of fake architectureArtyom Skrobov2015-11-206-42/+4
| | | | | | | | | | | | | | | | | | | | | | Summary: This follows D14577 to treat ARMv6-J as an alias for ARMv6, instead of an architecture in its own right. The functional change is that the default CPU when targeting ARMv6-J changes from arm1136j-s to arm1136jf-s, which is currently used as the default CPU for ARMv6; both are, in fact, ARMv6-J CPUs. The J-bit (Jazelle support) is irrelevant to LLVM, and it doesn't affect code generation, attributes, optimizations, or anything else, apart from selecting the default CPU. Reviewers: rengolin, logan, compnerd Subscribers: aemerson, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D14755 llvm-svn: 253675
* clang-format: [JS] Make AllowShortFunctionsOnASingle line value "Empty"Daniel Jasper2015-11-202-0/+7
| | | | | | work properly. llvm-svn: 253674
* Disable the cfi tests on WindowsHans Wennborg2015-11-201-1/+4
| | | | | | | They are currently broken and there seems to be no bot coverage for this configuration so it's essentially unspported. llvm-svn: 253673
* clang-format: [JS] Properly add a space after "in" in for loops.Daniel Jasper2015-11-202-1/+7
| | | | llvm-svn: 253672
* clang-format: [JS] struct and union aren't keywords / reserved words.Daniel Jasper2015-11-202-0/+6
| | | | llvm-svn: 253671
* SamplePGO - Add line offset and discriminator information to sample reports.Diego Novillo2015-11-202-7/+9
| | | | | | | | | While debugging some sampling coverage problems, I found this useful: When applying samples from a profile, it helps to also know what line offset and discriminator the sample belongs to. This makes it easy to correlate against the input profile. llvm-svn: 253670
* clang-format: Don't use incorrect space in macro calls with operators.Daniel Jasper2015-11-202-1/+4
| | | | | | | | | | | | Before: MACRO(> ); After: MACRO(>); Not overly important, but easy and good for symmetry reasons :-). llvm-svn: 253669
* [ThinLTO] Add MODULE_CODE_METADATA_VALUES recordTeresa Johnson2015-11-205-6/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is split out from the ThinLTO metadata mapping patch http://reviews.llvm.org/D14752. To avoid needing to parse the module level metadata during function importing, a new module-level record is added which holds the number of module-level metadata values. This is required because metadata value ids are assigned implicitly during parsing, and the function-level metadata ids start after the module-level metadata ids. I made a change to this version of the code compared to D14752 in order to add more consistent and thorough assertion checking of the new record value. We now unconditionally use the record value to initialize the MDValueList size, and handle it the same in parseMetadata for all module level metadata cases (lazy loading or not). Reviewers: dexonsmith, joker.eph Subscribers: davidxl, llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D14825 llvm-svn: 253668
* clang-format: [Proto] Support extending message.Daniel Jasper2015-11-203-1/+8
| | | | | | | | | | | | Before: extend.foo.Bar { } After: extend .foo.Bar { } llvm-svn: 253667
* [sanitizer] Implement internal_fork and internal_forkpty for OS XKuba Brecka2015-11-203-3/+26
| | | | | | | | On Linux, we have internal_fork that forks without invoking user's pthread_atfork handlers, which is important for spawning external symbolizers. Let's implement this for OS X as well (using __fork). This patch also adds internal_forkpty which re-implements forkpty and uses __fork in it as well. Differential Revision: http://reviews.llvm.org/D14869 llvm-svn: 253666
* [tsan] Replace POSIX semaphores with pthread condition variables in ↵Kuba Brecka2015-11-201-6/+14
| | | | | | | | | | vptr_benign_race.cc OS X doesn't support POSIX semaphores (but it does have the API for it, which returns ENOSYS - "Function not implemented"). Differential Revision: http://reviews.llvm.org/D14865 llvm-svn: 253665
* [Hexagon] Remove redundant assignment.Tilmann Scheller2015-11-201-1/+1
| | | | | | Identified by the Clang static analyzer. llvm-svn: 253664
* Partially revert r253662: some unrelated work was accidentally committed ↵Daniel Sanders2015-11-202-20/+8
| | | | | | | | with it. Sorry. llvm-svn: 253663
* Revert the revert 253497 and 253539 - These commits aren't the cause of the ↵Daniel Sanders2015-11-207-17/+98
| | | | | | | | clang-cmake-mips failures. Sorry for the noise. llvm-svn: 253662
* [FunctionAttrs] Remove redundant assignment.Tilmann Scheller2015-11-201-2/+0
| | | | | | Identified by the Clang static analyzer. llvm-svn: 253661
* [Hexagon] Remove redundant local variable.Tilmann Scheller2015-11-201-4/+2
| | | | | | Identified by the Clang static analyzer. llvm-svn: 253660
* [tsan] Fix deadlock_detector_stress_test.cc testcase for OS XKuba Brecka2015-11-201-1/+5
| | | | | | | | On OS X, we don't have pthread spinlocks, let's just use a regular mutex instead. Secondly, pthread_rwlock_t is much larger (200 bytes), so `char padding_[64 - sizeof(pthread_rwlock_t)]` actually underflows. Differential Revision: http://reviews.llvm.org/D14862 llvm-svn: 253659
* [tsan] Make tests that use CLOCK_MONOTONIC portableKuba Brecka2015-11-204-8/+30
| | | | | | | | Several tests rely on CLOCK_MONOTONIC, which doesn't exist on OS X. This patch fixes these tests by either disabling them (in case of cond_version.c which doesn't make sense on OS X), or by porting the test to also work on OS X. Differential Revision: http://reviews.llvm.org/D14861 llvm-svn: 253658
* Use thumb instruction set for ldb-server on android armTamas Berghammer2015-11-201-1/+1
| | | | | | Differential revision: http://reviews.llvm.org/D14816 llvm-svn: 253657
* Revert 253497 and 253539 to try to fix clang-cmake-mips buildbot.Daniel Sanders2015-11-205-78/+9
| | | | | | | | | | It caused link errors of the form: InstrProfiling.c:(.text.__llvm_profile_instrument_target+0x1c0): undefined reference to `__sync_fetch_and_add_8' We had a network outage at the time of the commit so the first build to show a problem is http://lab.llvm.org:8011/builders/clang-cmake-mips/builds/10827 llvm-svn: 253656
* Fix a pair of issues that caused an infinite loop in reassociate.Owen Anderson2015-11-203-1/+27
| | | | | | | | Terrifyingly, one of them is a mishandling of floating point vectors in Constant::isZero(). How exactly this issue survived this long is beyond me. llvm-svn: 253655
* Regenerate ASTMatchersReference without CRLF.Benjamin Kramer2015-11-201-139/+139
| | | | llvm-svn: 253654
* Fix ASTMatcher reference newlines and make the generator script windows-proof.Benjamin Kramer2015-11-203-4690/+4690
| | | | llvm-svn: 253653
* Use range-based for loops. NFCCraig Topper2015-11-201-12/+8
| | | | llvm-svn: 253652
* [mips][microMIPS] Implement MUL[_S].PH, MULEQ_S.W.PHL, MULEQ_S.W.PHR, ↵Hrvoje Varga2015-11-206-10/+60
| | | | | | | | MULEU_S.PH.QBL, MULEU_S.PH.QBR, MULQ_RS.PH, MULQ_RS.W, MULQ_S.PH and MULQ_S.W instructions Differential Revision: http://reviews.llvm.org/D14280 llvm-svn: 253651
* [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by ↵Alexey Bataev2015-11-205-3/+293
| | | | | | | | | Denis Zobnin. This patch adds support of #pragma vtordisp inside functions in attempt to improve compatibility. Microsoft compiler appears to save the stack of vtordisp modes on entry of struct methods' bodies and restore it on exit (method-local vtordisp). Differential Revision: http://reviews.llvm.org/D14467 llvm-svn: 253650
* Attempt to fix build breakage caused by r253646.George Burgess IV2015-11-201-1/+1
| | | | | | | | Apparently check_c_compiler_flag isn't a thing everywhere. Not being incredibly well-versed in cmake, I'm hoping that check_cxx_compiler_flag serves a similar purpose. :) llvm-svn: 253648
* [Myriad]: handle Preprocess job action (-E)Douglas Katzman2015-11-203-11/+19
| | | | llvm-svn: 253647
* Silence "unrecognised -std=c99" warning on MSVC.George Burgess IV2015-11-202-1/+4
| | | | | | | | Thanks to angelsl for the patch! Differential Revision: http://reviews.llvm.org/D13692 llvm-svn: 253646
* [libclang] Make sure to use the raw module format for libclang parsing.Argyrios Kyrtzidis2015-11-207-1/+19
| | | | | | | Fixes crash when passing '-gmodules' in the compiler options. rdar://23588717 llvm-svn: 253645
* [WebAssembly] Remove the AsmPrinter code for printing physical registers.Dan Gohman2015-11-201-3/+2
| | | | | | | | WebAssembly does not have physical registers, so even if LLVM uses physical registers like SP, they'll need to be lowered to virtual registers before AsmPrinter time. llvm-svn: 253644
* [WebAssembly] Add a few open tasks to the target README.txt.Dan Gohman2015-11-201-0/+17
| | | | llvm-svn: 253643
OpenPOWER on IntegriCloud