aboutsummaryrefslogtreecommitdiff
path: root/lib/clang
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade our copy of llvm/clang to r132879, from upstream's trunk.Dimitry Andric2011-06-126-5/+7
| | | | Notes: svn path=/head/; revision=223017
* On amd64, change clang's default triple to 'x86_64-unknown-freebsd9.0',Dimitry Andric2011-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. :) Notes: svn path=/head/; revision=222183
* Upgrade our copy of llvm/clang to r130700, from upstream's trunk.Dimitry Andric2011-05-0225-36/+81
| | | | Notes: svn path=/head/; revision=221345
* Update llvm/clang to trunk r126547.Dimitry Andric2011-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'. Notes: svn path=/head/; revision=219077
* Instead of defining LLVM_MULTITHREADED as 0 or 1, define or undefine it,Dimitry Andric2011-02-272-2/+2
| | | | | | | | and test appropriately. Otherwise it might erroneously pick up some pthread primitives, and fail to link. Notes: svn path=/head/; revision=219076
* Update llvm's config.h files to match more closely what is generated byDimitry Andric2011-02-262-11/+132
| | | | | | | a regular autoconf-based build. More cosmetic than functional changes. Notes: svn path=/head/; revision=219074
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.Dimitry Andric2011-02-2048-243/+299
| | | | | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg. Notes: svn path=/head/; revision=218893
* Don't use -fno-exceptions or -fno-rtti for .c files, when buildingDimitry Andric2010-11-141-2/+2
| | | | | | | llvm/clang. Notes: svn path=/head/; revision=215324
* When the make target is 'install', don't descend into the clangRui Paulo2010-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. Notes: svn path=/head/; revision=214562
* Upgrade Clang and LLVM to the 2.8 release. See here for release notes:Dimitry Andric2010-10-071-2/+2
| | | | | | | | | http://llvm.org/releases/2.8/docs/ReleaseNotes.html Approved by: rpaulo (mentor) Notes: svn path=/head/; revision=213534
* Upgrade our Clang in base to r114020, from upstream's release_28 branch.Dimitry Andric2010-09-2043-86/+260
| | | | | | | Approved-by: rpaulo (mentor) Notes: svn path=/head/; revision=212904
* In all Makefiles under lib/clang, consistently use tabs instead ofDimitry Andric2010-09-198-8/+8
| | | | | | | | | spaces after the '=' sign in macro assignments. Approved-by: rpaulo (mentor) Notes: svn path=/head/; revision=212847
* Modify clang so that when TOOLS_PREFIX is defined we register theRui Paulo2010-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 Notes: svn path=/head/; revision=211573
* Build clang libraries by default with -fno-exceptions and withRui Paulo2010-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> Notes: svn path=/head/; revision=210388
* Upgrade our Clang in base to r108428.Ed Schouten2010-07-2055-405/+970
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=210299
* Remove even two more unneeded files from libllvmsupport.Ed Schouten2010-06-151-8/+7
| | | | Notes: svn path=/head/; revision=209206
* Remove unneeded files from the build.Ed Schouten2010-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. Notes: svn path=/head/; revision=209205
* Unbreak Clang on PowerPC.Ed Schouten2010-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 Notes: svn path=/head/; revision=209153
* Disable usage of posix_spawn() inside LLVM.Ed Schouten2010-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 Notes: svn path=/head/; revision=209124
* Do the branding right this time.Ed Schouten2010-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. Notes: svn path=/head/; revision=209107
* Disable usage of __DATE__.Ed Schouten2010-06-101-1/+1
| | | | | | | | This ensures that the Clang binary doesn't change checksums every time it's built. Notes: svn path=/head/; revision=208985
* Brand our Clang binary.Ed Schouten2010-06-101-1/+2
| | | | | | | | That way it's easier for the Clang folks to keep track of what we're doing. Notes: svn path=/head/; revision=208984
* Import the build makefiles for clang/LLVM.Roman Divacky2010-06-09115-0/+1811
Approved by: ed (mentor) Notes: svn path=/head/; revision=208963