summaryrefslogtreecommitdiffstats
path: root/lib/clang
Commit message (Collapse)AuthorAgeFilesLines
* Sprinkle a bit of style.Makefile(5) across various clang Makefiles. Nodim2012-08-232-14/+14
| | | | | | functional changes. MFC after: 3 days
* Add three additional clang intrinsics headers, which I missed in thedim2012-08-201-1/+4
| | | | previous import.
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-2039-34/+116
| | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
* Upgrade our copy of llvm/clang to 3.1 release. Release notes can bedim2012-05-232-4/+4
| | | | | | found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html MFC after: 3 days
* Make sure a few new internal clang headers get installed, I missed thesedim2012-05-051-1/+7
| | | | | | | | | | | | | | in the last import. They are sometimes needed when you want to use advanced instructions. Also, add clang's internal stdalign.h header to ObsoleteFiles.inc, since it is redundant: we already have a stdalign.h header in /usr/include. Pointy hat to: dim PR: kern/167574 Submitted by: jkim Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de> MFC after: 2 weeks
* Upgrade our copy of llvm/clang to r155985, from upstream's release_31dim2012-05-039-33/+19
| | | | | | | branch. This brings us very close to the 3.1 release, which is planned for May 14th. MFC after: 2 weeks
* Revert r234356 for now, as it leads to run-time problems on 32-bitdim2012-04-231-6/+0
| | | | | | | PowerPC. Note this will break world. Reported by: andreast Pointy hat to: dim
* Work around an issue on 32-bit PowerPC, where clang executable can getdim2012-04-161-0/+6
| | | | | | too big, causing 'relocation truncated to fit' errors at link time. Reviewed by: nwhitehorn
* Upgrade our copy of llvm/clang to trunk r154661, in preparation of thedim2012-04-1653-79/+269
| | | | | | | 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
* Add a WITH_CLANG_EXTRAS option for src.conf(5), disabled by default,dim2012-02-0519-0/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that builds the following additional llvm/clang tools: - bugpoint - llc - lli - llvm-ar - llvm-as - llvm-bcanalyzer - llvm-diff - llvm-dis - llvm-extract - llvm-ld - llvm-link - llvm-mc - llvm-nm - llvm-objdump - llvm-prof - llvm-ranlib - llvm-rtdyld - llvm-stub - macho-dump - opt These tools are mainly useful for people that want to manipulate llvm bitcode (.bc) and llvm assembly language (.ll) files, or want to tinker with llvm and clang themselves. MFC after: 2 weeks
* In several llvm library Makefiles, remove extraneous slashes at the enddim2012-01-014-4/+4
| | | | | | of SRCDIR definitions. MFC after: 3 days
* Instead of forcing -O1 on PowerPC for LLVM and clang, fix the actualnwhitehorn2012-01-011-4/+2
| | | | | | | | problem by adding -fno-strict-aliasing to CFLAGS. Since this is a global issue that just happened to manifest on PowerPC, add this to CFLAGS unconditionally. MFC after: 1 week
* Use the correct upstream revision number for llvm/clang 3.0 release.dim2011-12-101-2/+2
| | | | | | | The r145546 revision is from branches/release_30, the r145349 revision is from tags/RELEASE_30/final. MFC after: 1 week
* Upgrade our copy of llvm/clang to 3.0 release. Release notes can bedim2011-12-093-2/+5
| | | | | | found at: http://llvm.org/releases/3.0/docs/ReleaseNotes.html MFC after: 1 week
* Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50nwhitehorn2011-11-211-1/+1
| | | | import, it works without issue.
* Revert r227538, since it doesn't compile with clang at all (it doesn'tdim2011-11-172-6/+2
| | | | | | | | | | | allow the built-in operations to be redefined, at least not without excessive force). Instead, just disable LLVM's support for atomic operations for now. Nothing in either clang or the tablegen tools currently depends on it. This still allows users of head built before r198344 to upgrade to top-of-head seamlessly.
* When one attempts to compile the tree with -march=i386, which also useddim2011-11-062-0/+4
| | | | | | | | | | | to be gcc's default before r198344, calls to atomic builtins will not be expanded inline. Instead, they will be generated as calls to external functions (e.g. __sync_fetch_and_add_N), leading to linking errors later on. Put in a seatbelt that disables use of atomic builtins in libstdc++ and llvm, when tuning specifically for the real i386 CPU. This does not protect against all possible issues, but it is better than nothing.
* Upgrade our copy of llvm/clang to r142614, from upstream's release_30dim2011-10-2237-88/+150
| | | | | | | branch. This brings us very close to the 3.0 release, which is expected in a week or two. MFC after: 1 week
* Update llvm/clang's target triple (confusingly named LLVM_HOSTTRIPLE) todim2011-10-171-2/+1
| | | | $arch-unknown-freebsd10.0.
* Upgrade our copy of llvm/clang to r135360, from upstream's trunk.dim2011-07-1761-128/+228
|
* Upgrade our copy of llvm/clang to r132879, from upstream's trunk.dim2011-06-126-5/+7
|
* On amd64, change clang's default triple to 'x86_64-unknown-freebsd9.0',dim2011-05-221-1/+1
| | | | | | | | | | | | | | | | similar to what we do for binutils. When clang's default triple starts with 'amd64-', it does not pass a proper -target-cpu option to its first stage. This can lead to problems, for example when structs are memcpy'd, and clang erroneously assumes they are 16-byte aligned. It will then use the 'movaps' SSE instruction to implement the copy, which results in a bus error if the struct is really 8-byte aligned. I encountered this issue when gcc's /usr/libexec/cc1 started crashing with SIGBUS, after rebuilding world with clang ToT, but it also affects the version of clang that we have in the tree. We were just lucky until now, apparently. :)
* Upgrade our copy of llvm/clang to r130700, from upstream's trunk.dim2011-05-0225-36/+81
|
* Update llvm/clang to trunk r126547.dim2011-02-273-3/+4
| | | | | | | | | | | | | | 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'.
* Instead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,dim2011-02-272-2/+2
| | | | | and test appropriately. Otherwise it might erroneously pick up some pthread primitives, and fail to link.
* Update llvm's config.h files to match more closely what is generated bydim2011-02-262-11/+132
| | | | a regular autoconf-based build. More cosmetic than functional changes.
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-2048-243/+299
| | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
* Don't use -fno-exceptions or -fno-rtti for .c files, when buildingdim2010-11-141-2/+2
| | | | llvm/clang.
* When the make target is 'install', don't descend into the clangrpaulo2010-10-301-3/+5
| | | | | libraries subdirectories since there's nothing to do there. This saves us quite a few seconds off installworld, esp. if the disk I/O is slow.
* Upgrade Clang and LLVM to the 2.8 release. See here for release notes:dim2010-10-071-2/+2
| | | | | | http://llvm.org/releases/2.8/docs/ReleaseNotes.html Approved by: rpaulo (mentor)
* Upgrade our Clang in base to r114020, from upstream's release_28 branch.dim2010-09-2043-86/+260
| | | | Approved-by: rpaulo (mentor)
* In all Makefiles under lib/clang, consistently use tabs instead ofdim2010-09-198-8/+8
| | | | | | spaces after the '=' sign in macro assignments. Approved-by: rpaulo (mentor)
* Modify clang so that when TOOLS_PREFIX is defined we register therpaulo2010-08-211-0/+4
| | | | | | | | 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
* Build clang libraries by default with -fno-exceptions and withrpaulo2010-07-224-0/+14
| | | | | | | | | -fno-rtti. The clang libaries that really use exceptions and virtual functions can enable LLVM_REQUIRES_EH and LLVM_REQUIRES_RTTI respectively. This saves space on the resulting binaries and follows what's being done upstream. Submitted by: Dimitry Andric <dimitry at andric.com>
* Upgrade our Clang in base to r108428.ed2010-07-2055-408/+973
| | | | | | | | | This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
* Remove even two more unneeded files from libllvmsupport.ed2010-06-151-8/+7
|
* Remove unneeded files from the build.ed2010-06-1512-51/+46
| | | | | | | | | | | | | | | I used the following command to determine which source files were unneeded: | for i in `find lib/clang -name '*.o'` | do | MATCHES="`(nm -g --defined-only $i; nm -g --defined-only \ | usr.bin/clang/clang/clang) | sed -e 's/.* //' | \ | sort | uniq -d | wc -l`" | [ $MATCHES -eq 0 ] && echo "$i: unneeded" | done This should slightly improve the build times.
* Unbreak Clang on PowerPC.ed2010-06-141-1/+6
| | | | | | | | It seems GCC 4.2.1 on PowerPC miscompiles Clang, causing it to crash when building even simple Hello World applications. Switch back to -O1 for this architecture. Submitted by: nwhitehorn
* Disable usage of posix_spawn() inside LLVM.ed2010-06-132-2/+2
| | | | | | | | | Even though it's nice to use posix_spawn() instead of manually using fork()/exec(), it's better to disable this. FreeBSD 7 doesn't support this interface. When enabled, we can't build tblgen, which prevents us from building FreeBSD 9 on 7. Tested by: raj
* Do the branding right this time.ed2010-06-121-1/+2
| | | | | | | | | I've looked at other places in the source tree where CLANG_VENDOR is used and I suspect it might not be safe to use newlines here. CLANG_VENDOR should just be defined to "FreeBSD ", just like the latest Clang preview in OS X uses "Apple ". Properly use SVN_REVISION to define it to the imported revision of Clang. I do want to have a date in there, so slightly modify the code to support CLANG_VENDOR_SUFFIX.
* Disable usage of __DATE__.ed2010-06-101-1/+1
| | | | | This ensures that the Clang binary doesn't change checksums every time it's built.
* Brand our Clang binary.ed2010-06-101-1/+2
| | | | | That way it's easier for the Clang folks to keep track of what we're doing.
* Import the build makefiles for clang/LLVM.rdivacky2010-06-09115-0/+1811
Approved by: ed (mentor)
OpenPOWER on IntegriCloud