229 Commits

Author SHA1 Message Date
brad
33c95574ef r209479
Don't reduce the stack protector level given -fstack-protector.

ok sthen@
2014-05-29 00:23:36 +00:00
brad
785470a4b5 Add SVN commit revision. 2014-05-22 13:30:23 +00:00
brad
40bd3b5c62 - Switch to stack protector strong by default
- Fix the --param ssp-buffer-size= support

ok sthen@
2014-05-17 11:41:15 +00:00
brad
017c881043 Disable the terminfo support which is used to determine if a terminal
has colours support, but the added dependency seems to cause issues
when linking the LLVM libraries as is. Probably an issue with the
build infrastructure but we don't care about colours.

Requeted by jsg@

ok sthen@
2014-04-19 19:56:21 +00:00
brad
698bc29458 Add SVN revision 2014-04-18 21:26:56 +00:00
brad
207a2888cc Update to LLVM 3.5 (trunk) snapshot just before switching to an unconditional
C++11 codebase.

This brings in a number of improvements over 3.4 including..
X86 assembler with 16-bit support
Much improved SPARC backend
stack protector strong support

ok sthen@
2014-04-18 09:30:48 +00:00
brad
fa8c49b548 lit wants a copy of bash around for the test framework.
ok sthen@
2013-12-16 20:34:46 +00:00
brad
dc5f6f6c36 - Fix the test target since the switch from GNU autoconf/make to CMake
- Add the scan-build man page
- Correct the capitalization of Clang in DESCR

ok sthen@
2013-12-07 10:30:39 +00:00
brad
b93422e552 - Remove MAKE_FLAGS variables as they were only relevant for the GNU autoconf/make
build infrastructure
- Remove the CMake patch as sebastia@ says it did not actually work and should be
  removed
- Some frontend driver tweaks for the external assembler handling for 32-bit mode
  (-m32) on amd64, powerpc handling and bring the ABI determination bits in line
  with the other OS's to use the getGnuCompatibleMipsABIName function

ok sthen@
2013-12-02 22:14:29 +00:00
sthen
701c91e413 kill VMEM_WARNING 2013-11-25 14:16:22 +00:00
sthen
27f03b1c52 bump REVISION for any ports using route messages. regen some distinfos and
remove unnecessary USE_GROFFs while there.
2013-10-31 21:12:12 +00:00
jsg
b1ef8a8075 enable the R600 target
ok sthen@ brad@
2013-08-06 23:33:44 +00:00
naddy
b44ec0e969 this profits a lot from parallel building under dpb 2013-06-28 11:14:38 +00:00
brad
ffaa1a2b14 Update to LLVM 3.3.
ok sthen@
2013-06-21 22:09:12 +00:00
sebastia
21cb354a14 Allow upcoming libobjc2 to find LLVM-Config.cmake in its configure stage.
Fix from and OK zhuk@
OK dcoppa@
2013-05-02 15:41:57 +00:00
sthen
17c95658e6 Pull in r175057 from upstream LLVM, via FreeBSD, found by Wada Hiroyuki.
X86: Disable generation of rep;movsl when %esi is used as a base pointer.
This happens when there is both stack realignment and a dynamic alloca in the
function. If we overwrite %esi (rep;movsl uses fixed registers) we'll lose the
base pointer and the next register spill will write into oblivion.
2013-03-30 12:10:40 +00:00
espie
bcf3856632 PERMIT_* / REGRESS->TEST sweep 2013-03-11 10:50:00 +00:00
brad
c54dae5771 Add some initial bits for mips64 to pass down the proper flags
to the assembler and linker. Still work in progress.

ok sthen@
2013-01-08 10:14:13 +00:00
brad
48a783ee6f - Remove USE_LIBTOOL and explicit CONFIGURE_STYLE as the CMake
module does that for us
- Shuffle some of the Makefile bits around

ok sthen@
2013-01-08 09:53:46 +00:00
brad
ac1ecd7415 Silence some warnings and allow passing down some feature flags to the linker.
ok sthen@
2013-01-04 01:10:30 +00:00
brad
cc75b05c01 Update to LLVM 3.2 and switces to __guard_local for stack protector support.
Initial work from landry@ with some fixes and further tweaking from pascal@ and brad@

ok sthen@ landry@
2012-12-23 20:49:29 +00:00
jasper
9319ac3f2e - drop the 'svn' suffix from llvm-config --version output.
ok sthen@
2012-10-16 18:22:30 +00:00
sthen
42c6a55c0c don't .include <bsd.port.arch.mk> just to get definitions from arch-defines 2012-09-30 09:16:36 +00:00
sthen
651353dd61 fix RTTI building since moving to CMake - problem reported & fix tested
by Tony Sidaway, thanks!
2012-09-05 23:19:24 +00:00
pascal
df44ab302a Disable PIE for now in clang until someone is masochistic enough to figure
out how to best handle enabling it by default.  Manually speficying -fpie
-Wl,-pie will still work, of course.

ok sthen@
2012-08-31 16:21:20 +00:00
sthen
85a7d74bd9 Re-sync CLang with the OBSD_LIB_SPEC now used in base (-lc for libs was
removed again). From Brad.
2012-08-29 00:45:47 +00:00
pascal
c619f16384 Mimic the new gcc -pthread semantics. From Brad.
looks good to matthew@
2012-08-21 17:51:53 +00:00
dcoppa
ef1092aee3 Remove '-lpthread'->'-pthread' hacks 2012-08-20 08:12:47 +00:00
sthen
4c3755caaf Sync with r161481 from upstream, "Revert part of r161175 which was wrong
for OpenBSD's PowerPC target". Problem pointed out by landry@.
2012-08-08 09:35:24 +00:00
sthen
eca8eaed22 Add several CLang patches from upstream via Brad.
- Only provide /usr/include in the default C header search path.
- OpenBSD does not support TLS.
- Provide target support for powerpc, arm, mips64, mips64el and sparc.
2012-08-06 22:35:26 +00:00
pascal
af7cfff551 Make stack smashing protection work with our native libc routines, and enable
it by default.

ok jsg@
2012-08-04 14:47:52 +00:00
sthen
ce3a4663cb use LLVM_ARCHS to populate ONLY_FOR_ARCHS, better to have this in a
central place.
2012-07-08 18:36:12 +00:00
dcoppa
cf153cacfa Fix libpthread linking (use '-pthread' instead of '-lpthread') for
cmake-based ports that use "CHECK_LIBRARY_EXISTS(pthread ...)".

Fix libpthread linking for devel/llvm too (additional care was
needed).

No fallout in a bulk build: thanks landry!
2012-06-14 09:32:00 +00:00
jasper
1e878a85e0 - let g-c-a use the clang module to get the correct includes path
- add a reminder commennt in llvm/Makefile

discussed with and ok sthen@
2012-05-26 09:14:34 +00:00
sthen
68d394c41c Update to LLVM 3.1.
Thanks Brad for pointing out a few problems with my original diff.
2012-05-25 09:05:49 +00:00
dcoppa
fa4bc9a99d Fix CMake check for pthread_mutex_lock: use check_library_exists()
function instead of the buggy check_symbol_exists().

ok sthen@
2012-05-05 19:24:01 +00:00
sthen
e7e448a021 Update Clang to use _REENTRANT instead of _POSIX_THREADS when using the
-pthread flag. From Brad.
2012-04-23 23:11:01 +00:00
sthen
9ed38fb990 set ONLY_FOR_ARCHS to try and build only on arch where packages currently exist. 2012-04-11 13:05:45 +00:00
sthen
88ea72915d Change SEPARATE_BUILD=(concurrent|simple) to Yes; bsd.port.mk doesn't
make a distinction between these.  ok aja@ dcoppa@
2012-03-29 13:38:12 +00:00
sthen
9c76f842e6 NOT_FOR_ARCHS=sparc, this uses too much memory, as found by phessler 2012-01-19 08:41:13 +00:00
sthen
f0bb115a15 Remove unnecessary patch to ignore -Wbounded, it was included upstream
elsewhere in the file. Reported by Amit Kulkarni.
2011-12-15 08:39:51 +00:00
sthen
7ff2ae5f79 update to LLVM/CLang 3.0, thanks sebastia@ for testing.
- switch to cmake build
- add profiling support from jsg@
2011-12-14 22:58:23 +00:00
espie
c5a475ebe0 normalize pkgpath 2011-09-16 09:24:48 +00:00
jasper
b9751fcca8 - update scan-build link in MESSAGE
from tim van der molen
2011-06-30 19:57:14 +00:00
jasper
eec0417831 bump after default python version switch 2011-06-08 17:31:05 +00:00
chl
c69a51fdef No need to "make depend" anymore to build kernel.
ok sthen@
2011-05-03 15:03:03 +00:00
jsg
e9fbea9c63 update to 2.9
ok sthen@ tested by matthew@ jeremy@
2011-04-09 21:43:39 +00:00
jeremy
f02872702e Bump llvm version to 2.8.
OK @sthen
2011-01-13 00:15:50 +00:00
espie
5855efb734 move depends to new style 2010-11-15 19:45:56 +00:00
espie
5c08d95027 USE_GROFF=Yes 2010-10-18 17:47:50 +00:00