summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/head r277719 through 277776.dim2015-01-261-0/+5
|\
| * Pull in r227062 from upstream clang trunk (by Renato Golin):dim2015-01-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows Clang to use LLVM's fixes-x18 option This patch allows clang to have llvm reserve the x18 platform register on AArch64. FreeBSD will use this in the kernel for per-cpu data but has no need to reserve this register in userland so will need this flag to reserve it. This uses llvm r226664 to allow this register to be reserved. Patch by Andrew Turner. Requested by: andrew
* | Merge ^/head r277327 through r277718.dim2015-01-251-0/+11
|\ \ | |/
| * Allow clang to be built for mips/mips64 backend types by adding our mipssbruno2015-01-201-0/+11
| | | | | | | | | | | | | | | | | | | | triple ids This only allows testing and does not change the defaults for mips/mips64. They still build/use gcc by default. Differential Revision: https://reviews.freebsd.org/D1190 Reviewed by: dim
* | Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 fromdim2015-01-2518-1919/+2857
|/ | | | ^/vendor/clang/dist, resolve conflicts, and cleanup patches.
* Merge clang 3.5.0 release from ^/vendor/clang/dist, resolve conflicts,dim2014-11-2414-2439/+4275
| | | | and preserve our customizations, where necessary.
* Update the ARMv6 core clang targets to be an arm1176jzf-s. This brings usandrew2014-08-012-2/+4
| | | | | in line with gcc in base as this makes llvm generate code for the armv6k variant of the instruction set.
* Upgrade our copy of llvm/clang to 3.4.1 release. This release containsdim2014-05-125-34/+42
| | | | | | | | | | | | | | | mostly fixes, for the following upstream bugs: http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000 http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165 http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316 http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515 http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762 http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994 http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033 http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326 MFC after: 2 weeks
* Merge -fstandalone-debug from Clang r198655:emaste2014-05-071-2/+2
| | | | | | | | | | | | | Implement a new -fstandalone-debug option. rdar://problem/15685848 It controls everything that -flimit-debug-info used to, plus the vtable type optimization. The old -fno-limit-debug-info option is now an alias to -fstandalone-debug and vice versa. Standalone is the default on Darwin until dtrace is updated to work with non-standalone debug info (rdar://problem/15758808). Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind because NoStandaloneDebugInfo sounded even more confusing.
* Amend r263891, by making clang default to DWARF2 debug info format fordim2014-04-111-3/+2
| | | | | | | | | | | all FreeBSD versions, not just 10.x and earlier. Apparently too many people seem to have trouble with post-1993 formats. Also remove the related notes about messing with kernel configuration files from UPDATING, which are now superfluous. Requested by: many MFC after: 3 days
* Make clang default to DWARF2 debug info format for FreeBSD 10.x anddim2014-03-291-2/+4
| | | | | | | earlier. For head, this commit does not change anything, but it is purely meant to be MFC'd. MFC after: 3 days
* Pull in r201662 from upstream clang trunk:andrew2014-03-222-3/+21
| | | | | | Add FreeBSD ARM EABI hard-float support Patch by Andrew Turner.
* Pull in r202179 from upstream clang trunk:dim2014-02-261-0/+5
| | | | Pass the sparc architecture variant to the assembler.
* Pull in r202177 from upstream clang trunk (by Roman Divacky):dim2014-02-261-1/+2
| | | | | | Give sparcv9 the ability to set the target cpu. Change it from accepting -march which doesnt exist on sparc gcc to -mcpu. While here adjust a few tests to not write an unused temporary file.
* Merge from head up to r262311.dim2014-02-211-1/+6
|\
| * Pull in r197521 from upstream clang trunk (by rdivacky):dim2014-02-211-1/+6
| | | | | | | | | | | | | | | | Use the integrated assembler by default on FreeBSD/ppc and ppc64. Requested by: jhibbits MFC after: 1 month X-MFC-With: r261991
* | Import a whole bunch of clang trunk commits to enable self-hosting clangdim2014-02-202-6/+67
|/ | | | | | | | | 3.4 on Sparc64 (commit descriptions left out for brevity): r198311 r198312 r198911 r198912 r198918 r198923 r199012 r199034 r199037 r199188 r199399 r200452 Submitted by: rdivacky
* Upgrade our copy of llvm/clang to 3.4 release. This version supportsdim2014-02-1620-3181/+3567
| | | | | | | | | | | | | | | | | all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month
* 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
* 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, ...
* Upgrade our copy of llvm/clang to 3.3 release.dim2013-06-128-204/+589
| | | | | | Release notes are still in the works, these will follow soon. MFC after: 1 month
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of thedim2013-04-1218-1815/+1888
| | | | | | | | | 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 r170096 from upstream clang trunk:andrew2012-12-233-0/+30
| | | | Initial support for FreeBSD on ARM.
* Upgrade our copy of llvm/clang to 3.2 release.dim2012-12-231-1/+5
| | | | | | | | | | 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-0316-1091/+1549
| | | | | branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is coming soon.
* 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
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-2011-579/+1217
| | | | 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
* For clang, similar to r236137, enable gnu hash generation for dynamicdim2012-05-291-0/+3
| | | | ELF binaries on x86.
* Upgrade our copy of llvm/clang to 3.1 release. Release notes can bedim2012-05-231-1/+3
| | | | | | 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-034-41/+42
| | | | | | | 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-1618-2243/+3038
| | | | | | | 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
* Upgrade our copy of llvm/clang to 3.0 release. Release notes can bedim2011-12-094-318/+859
| | | | | | found at: http://llvm.org/releases/3.0/docs/ReleaseNotes.html MFC after: 1 week
* Rename the linker emulation name for powerpc and powerc64. This is needed thatandreast2011-11-191-1/+1
| | | | | we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation.
* Upgrade our copy of llvm/clang to r142614, from upstream's release_30dim2011-10-2215-768/+1502
| | | | | | | branch. This brings us very close to the 3.0 release, which is expected in a week or two. MFC after: 1 week
* Upgrade our copy of llvm/clang to r135360, from upstream's trunk.dim2011-07-179-120/+433
|
* Upgrade our copy of llvm/clang to r132879, from upstream's trunk.dim2011-06-126-152/+360
|
* Upgrade our copy of llvm/clang to r130700, from upstream's trunk.dim2011-05-029-467/+731
|
* Update llvm/clang to trunk r126547.dim2011-02-273-9/+18
| | | | | | | | | | | | | | There are several bugfixes in this update, but the most important one is to ensure __start_ and __stop_ symbols for linker sets and kernel module metadata are always emitted in object files: http://llvm.org/bugs/show_bug.cgi?id=9292 Before this fix, if you compiled kernel modules with clang, they would not be properly processed by kldxref, and if they had any dependencies, the kernel would fail to load those. Another problem occurred when attempting to mount a tmpfs filesystem, which would result in 'operation not supported by device'.
* Remove getDriver().Dir + /../libexec and /usr/libexec from clang'sdim2011-02-261-2/+0
| | | | program paths. Unlike gcc, clang has no executables in libexec.
* Remove misapplied space.dim2011-02-261-1/+1
|
* Recently, in upstream clang, a fix was done to add -L/usr/lib to thedim2011-02-241-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | arguments passed to ld, when linking. This was to appease configure scripts in several ports, that grep for such a -L option in "${CC} -v" output, to determine the startup objects passed to ld. Note ld itself does not need to be told about /usr/lib, since it has this path builtin anyway. However, if clang is built as a bootstrap tool during buildworld, it should not use *anything* outside ${WORLDTMP} to include or link with. The upstream fix to add -L/usr/lib breaks this assumption, and can thus cause libraries from /usr/lib to be linked in during buildworld. This can result in buildworld dying during linking of zinject, where it picks up the wrong copy of libzpool.so, eventually leading to: /usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot' Fix this issue by not adding any hardcoded paths, but by looping through the run-time library path list, which is already correctly set for the bootstrap phase. Reported by: datastream.freecity@gmail.com Pointy hat to: dim
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-2018-353/+1653
| | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
* Remove more unneeded files and directories from contrib/llvm. Thisdim2010-10-112-38/+0
| | | | | | | still allows us to build tblgen and clang, and further reduces the footprint in the tree. Approved by: rpaulo (mentor)
* Apply r207674 from the clangbsd project branch:dim2010-10-061-1/+1
| | | | | | | | | Make "clang -print-multi-os-directory" return "." on amd64, matching gcc's behaviour. This is needed because some ports use the option to determine the installation directory for their libraries. Requested by: kwm Approved by: rpaulo (mentor)
* Upgrade our Clang in base to r114020, from upstream's release_28 branch.dim2010-09-2013-575/+822
| | | | Approved-by: rpaulo (mentor)
* Modify clang so that when TOOLS_PREFIX is defined we register therpaulo2010-08-211-4/+6
| | | | | | | | CLANG_PREFIX macro. This changes the default header search path when we are building clang as part of cross-tools. Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: freebsd-current
OpenPOWER on IntegriCloud