summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Pull in r197399 from upstream clang trunk:dim2013-12-171-0/+1
| | | | | | Add bit_FXSAVE as an alias for bit_FXSR, for gcc compat. MFC after: 3 days
* Pull in r196658 from upstream clang trunk:dim2013-12-081-3/+2
| | | | | | | | | | | | | | | | | CodeGen: Don't emit linkage on thunks that aren't emitted because they're vararg. This can happen when we're trying to emit a thunk with available_externally linkage with optimization enabled but bail because it doesn't make sense for vararg functions. [LLVM] PR18098. This should fix clang "Broken module found, compilation aborted" errors when building the qt4-based dvbcut port. Reported by: se MFC after: 3 days
* Pull in r196590 from upstream clang trunk (by rdivacky):dim2013-12-072-8/+8
| | | | | | | | | | | | | Move the body of GCCInstallationDetector ctor into an init() function and call it from its only user. The linux toolchain. This saves quite a lot of directory searching on other platforms. See http://docs.freebsd.org/cgi/mid.cgi?51E6FAF5.3080802 for the original discussion. With this fix, the search for gcc installations is completely eliminated on FreeBSD. Reported by: Kurt Lidl <lidl@pix.net> MFC after: 3 days
* Update LLDB to upstream r196322 snapshotemaste2013-12-032-10/+31
| | | | | | | | Upstream revisions of note: r196298 - Fix use of std::lower_bound r196322 - Fix log message for new invalidation checks Sponsored by: DARPA, AFRL
* lldb: Threaded inferior support for FreeBSDemaste2013-12-0310-204/+341
| | | | | | | | | | This is in the process of being submitted to the upstream LLDB repository. The thread list functionality is modelled in part on GDBRemoteCommunicationClient. LLDB bug pr16696 and code review D2267 Sponsored by: DARPA, AFRL
* Update LLDB to upstream r196259 snapshotemaste2013-12-03148-2692/+6573
| | | | Sponsored by: DARPA, AFRL
* Workaround lldb issue with main module base addressemaste2013-12-031-0/+11
| | | | | | | | | | | On FreeBSD lldb sometimes reloads the the main module's (executable's) symbols at the wrong address. Work around this for now by explicitly reloading at base_address=0 when it happens. A proper fix is needed but early testers have reported this issue so this workaround should allow them to make further progress. http://llvm.org/bugs/show_bug.cgi?id=17880
* Pull in r195558 from upstream clang trunk:dim2013-11-261-1/+1
| | | | | | | | | | | | | | Fix a SSE2 intrinsics typo Full discourse at: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html Patch by Dimitry Andric and Alexey Dokuchaev! Reported by: danfe MFC after: 3 days
* Merge upstream LLDB r194487:emaste2013-11-132-3/+6
| | | | | | | | Log failure to restore thread state in ThreadPlanCallFunction::DoTakedown In order to help track down llvm.org/pr17226. Sponsored by: DARPA, AFRL
* lldb: Correct a standalone debug file pathemaste2013-11-131-4/+4
| | | | | | | | | | | For a file /bin/ls with a .gnu_debuglink entry of "ls.debug" the path should be /usr/lib/debug/bin/ls.debug, not /usr/lib/debug/bin/ls. ref: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html Upstream defect pr17903 (http://llvm.org/pr17903) Sponsored by: DARPA, AFRL
* Update LLDB to upstream r194122 snapshotemaste2013-11-12420-7930/+26537
| | | | | | | | | | | | | ludes minor changes relative to upstream, for compatibility with FreeBSD's in-tree LLVM 3.3: - Reverted LLDB r191806, restoring use of previous API. - Reverted part of LLDB r189317, restoring previous enum names. - Work around missing LLVM r192504, using previous registerEHFrames API (limited functionality). - Removed PlatformWindows header include and init/terminate calls. Sponsored by: DARPA, AFRL
* Add clang-CC and CC to list of hints allowing clang to identify its operatingsmh2013-10-251-0/+2
| | | | | | | | | | | mode as c++ instead of defaulting to c for the binary names CC and clang-CC. This fixes builds that use cmake, which automatically sets CXX to /usr/bin/CC by default. PR: bin/182442 Reviewed by: dwhite, wca MFC after: 2 days
* Pull in r189644 from upstream llvm trunk:dim2013-10-0312-3/+65
| | | | | | | | | | | | Add ms_abi and sysv_abi attribute handling. Based on a patch by Benno Rice! This will help to develop EFI support. Approved by: re (kib) Verified by: benno MFC after: 1 week
* Disable LLDB OSX ABI pluginemaste2013-09-201-6/+0
| | | | Approved by: re (blanket)
* Merge lldb man page from r188801 to contrib/llvm/tools/lldb/docs/emaste2013-09-191-0/+119
| | | | Approved by: re (gjb)
* On platforms where clang is the default compiler, don't build gcc or libstdc++.theraven2013-09-062-0/+37
| | | | | | | | | | | | | | | | | | To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ...
* Disable lldb target support not (currently) of interestemaste2013-08-252-14/+2
| | | | | | | | | - Remote iOS debugging - OS X symbol provider, core files - PECOFF object files - Linux platform support Sponsored by: DARPA, AFRL
* Revert lldb change for Attribute::NoBuiltinemaste2013-08-241-14/+0
| | | | | | | | | NoBuiltin was introduced after clang/llvm 3.3 and thus does not exist in FreeBSD. Thus special handling for the attribute is not needed in lldb. This reverts lldb r186990 (git eebd175) Sponsored by: DARPA, AFRL
* Revert lldb changes due to post-3.3 clang and llvm API changesemaste2013-08-246-37/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | Revisions: svn git 183929 99447a6 183862 15c1774 source/Host/common/FileSpec.cpp 184954 007e7bc 184948 4dc3761 source/Expression/ClangExpressionParser.cpp 182099 b31044e 181387 779e6ac include/lldb/Expression/IRExecutionUnit.h source/Expression/IRExecutionUnit.cpp 184177 0b2934b 182650 f2dcf35 181703 7bef4e2 source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp 182683 0d91b80 source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Sponsored by: DARPA, AFRL
* Merge lldb r188801 to contrib/llvm/tools/lldb/emaste2013-08-23885-0/+362847
|
* Pull in r182983 from upstream clang trunk:dim2013-08-201-5/+10
| | | | | | | | | | | | | | | | | Fix handling of braced-init-list as reference initializer within aggregate initialization. Previously we would incorrectly require an extra set of braces around such initializers. Pull in r188718 from upstream clang trunk: Handle init lists and _Atomic fields. Fixes PR16931. These fixes are needed for the atomic_flag type to work correctly in our stdatomic.h. Requested by: theraven
* Pull in r188716 from upstream clang trunk:dim2013-08-201-2/+4
| | | | | | | | | PR16727: don't try to evaluate a potentially value-dependent expression when checking for missing parens in &&/|| expressions. This fixes an assertion encountered when building the lang/sdcc port. Reported by: kwm
* Pull in r186696 from upstream clang trunk:dim2013-07-301-2/+124
| | | | | | | | | | | | | | | | | This patch implements __get_cpuid_max() as an inline and __cpuid() and __cpuid_count() as macros to be compatible with GCC's cpuid.h. It also adds bit_<foo> constants for the various feature bits as described in version 039 (May 2011) of Intel's SDM Volume 2 in the description of the CPUID instruction. The list of bit_<foo> constants is a bit exhaustive (GCC doesn't do near this many). More bits could be added from a newer version of SDM if desired. Patch by John Baldwin! This should fix several ports which depend on this functionality being available. MFC after: 1 week
* Pull in r185446 from clang trunk:dim2013-07-031-1/+2
| | | | | | Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout. Reported by: glebius
* Pull in r183926 from LLVM trunk:andrew2013-06-155-3/+13
| | | | | | | | | | | Allow clang to build __clear_cache on ARM. __clear_cache is special. It needs no signature, but is a real function in compiler_rt or libgcc. Patch by Andrew Turner. This allows us to build the __clear_cache function in compiler-rt.
* Pull in r184040 from upstream clang trunk:ed2013-06-151-2/+2
| | | | | | | | | | | | Emit native implementations of atomic operations on FreeBSD/armv6. Just like on Linux, FreeBSD/armv6 assumes the system supports ldrex/strex unconditionally. It is also used by the kernel. We can therefore enable support for it, like we do on Linux. While there, change one of the unit tests to explicitly test against armv5 instead of armv7, as it actually tests whether libcalls are emitted.
* Upgrade our copy of llvm/clang to 3.3 release.dim2013-06-12338-6203/+16507
| | | | | | Release notes are still in the works, these will follow soon. MFC after: 1 month
* Pull in r183033 and r183036 from LLVM trunk:ed2013-06-011-28/+105
| | | | | | | | | | | | | | | | | | | | | | Add support for optimized (non-generic) atomic libcalls. For integer types of sizes 1, 2, 4 and 8, libcompiler-rt (and libgcc) provide atomic functions that pass parameters by value and return results directly. libgcc and libcompiler-rt only provide optimized libcalls for __atomic_fetch_*, as generic libcalls on non-integer types would make little sense. This means that we can finally make __atomic_fetch_* work on architectures for which we don't provide these operations as builtins (e.g. ARM). This should fix the dreaded "cannot compile this atomic library call yet" error that would pop up once every while. This should make it possible for me to get C11 atomics working on all of our platforms.
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of thedim2013-04-12792-36224/+71998
| | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished.
* Pull in r177252 from upstream clang trunk:andrew2013-03-201-0/+1
| | | | | | | Make sure to use same EABI version for external assembler as for integrated as. This allows us to use gcc on a world built with clang on ARM.
* Pull in r172354 from upstream clang trunk:dim2013-02-222-61/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the x86 CPU name logic in the driver and pass -march and -mcpu flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. Fixes PR14697. Pull in r175919 from upstream clang trunk: Driver: Pass down the -march setting down to -cc1as on x86 too. The assembler historically didn't make use of any target features, but this has changed when support for old CPUs that don't support long nops was added. This should fix the long nops that still occurred in crt*.o, and possibly other object files, if the system was compiled for a CPU that does not support those, such as Geode. Note that gcc on i386 also does not pass through any -march, -mcpu or -mtune setting to gas, but this has not caused any trouble yet, because gas defaults to i386. Reported by: lev MFC after: 1 week
* Pull in r170135 from upstream clang trunk:dim2013-02-022-2/+46
| | | | | | | | | | | | | | | | Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled. Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped). To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time. MFC after: 1 week
* Pull in r170096 from upstream clang trunk:andrew2012-12-234-1/+33
| | | | Initial support for FreeBSD on ARM.
* Upgrade our copy of llvm/clang to 3.2 release.dim2012-12-236-15/+22
| | | | | | | | | | Release notes for llvm: http://llvm.org/releases/3.2/docs/ReleaseNotes.html Release notes for clang: http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html MFC after: 2 weeks
* Upgrade our copy of llvm/clang to r168974, from upstream's release_32dim2012-12-03609-20829/+39832
| | | | | branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is coming soon.
* Pull in r166498 from upstream clang trunk:ed2012-10-253-0/+16
| | | | | | Add a new warning -Wmissing-variable-declarations, to warn about variables defined without a previous declaration. This is similar to -Wmissing-prototypes, but for variables instead of functions.
* Pull in r164132 from upstream llvm trunk:dim2012-10-102-4/+4
| | | | | | | | | | | | | | | | | When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend store this and use it to not emit long nops when the CPU is geode which doesnt support them. Fixes PR11212. Pull in r164133 from upstream clang trunk: Follow up on llvm r164132. This should prevent illegal instructions when building world on Geode CPUs (e.g. Soekris). MFC after: 3 days
* Pull in r164717 from upstream clang trunk:dim2012-10-031-3/+3
| | | | | | | | Allow -MF to be used in combination with -E -M or -E -MM. This should help with building the lang/ghc port. MFC after: 1 week
* Pull in r162360 from upstream clang trunk:dim2012-08-231-2/+3
| | | | | | | | Merge existing attributes before processing pragmas in friend template declarations. Fixes pr13662. This should help when building Firefox with libc++.
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-20594-26979/+58305
| | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
* Similar to what is already done for Linux, make clang not complain aboutdim2012-07-281-0/+8
| | | | | | | | unused -g, -emit-llvm or -w arguments when doing linking. E.g. invoking "clang -g foo.o -o foo" will now be silent. Reported by: Jakub Lach <jakub_lach@mailplus.pl> MFC after: 1 week
* Similar to r238472, let clang pass --enable-new-dtags to the linkerdim2012-07-281-1/+3
| | | | | | | invocation by default. Also make sure --hash-style=both is passed for the same arches as gcc, e.g. arm, sparc and x86. X-MFC-with: r238472
* Pull in r159895 from upstream clang trunk:dim2012-07-131-8/+17
| | | | | | | | | | | | | | When marking virtual functions as used for a class' vtable, mark all functions which will appear in the vtable as used, not just those ones which were declared within the class itself. Fixes an issue reported as comment#3 in PR12763 -- we sometimes assert in codegen if we try to emit a reference to a function declaration which we've not marked as referenced. This also matches gcc's observed behavior. This should fix clang assertions when building certain components of the LibreOffice port. MFC after: 3 days
* Pull in r155978 from upstream llvm trunk:dim2012-06-011-1/+1
| | | | | | | | Fix unintentional use of operator bool. This enables llvm's bugpoint tool to build with libc++. MFC after: 3 days
* Pull in r156591 from upstream llvm trunk:dim2012-05-291-1/+2
| | | | | | | | | | | | | | | Allow unique_file to take a mode for file permissions, but default to user only read/write. and r156592 from upstream clang trunk: For final output files create them with mode 0664 to match other compilers and expected defaults. This should fix clang creating files with mode 0600. Reported by: James <james@hicag.org> MFC after: 3 days
* For clang, similar to r236137, enable gnu hash generation for dynamicdim2012-05-291-0/+3
| | | | ELF binaries on x86.
* Pull in r157212 from upstream clang trunk:dim2012-05-271-18/+14
| | | | | | | | | | | | | | | | | | | Revert r115805. An array type is required to have a range type, however, the range can be unknown for the upper bound. Testcase to follow. Part of rdar://11457152 This should fix ctfconvert producing error messages during kernel builds, similar to: ERROR: scsi_all.c: die 24561: failed to retrieve array bounds These were caused by incorrect debug information for flexible array members of structs. MFC after: 3 days
* Upgrade our copy of llvm/clang to 3.1 release. Release notes can bedim2012-05-2321-344/+130
| | | | | | found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html MFC after: 3 days
* Upgrade our copy of llvm/clang to r155985, from upstream's release_31dim2012-05-03161-4937/+3422
| | | | | | | branch. This brings us very close to the 3.1 release, which is planned for May 14th. MFC after: 2 weeks
* Upgrade our copy of llvm/clang to trunk r154661, in preparation of thedim2012-04-16735-44174/+115006
| | | | | | | upcoming 3.1 release (expected in a few weeks). Preliminary release notes can be found at: <http://llvm.org/docs/ReleaseNotes.html> MFC after: 2 weeks
OpenPOWER on IntegriCloud