summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/lib/Driver (follow)
Commit message (Collapse)AuthorAgeFilesLines
* On OpenBSD disable the malloc/calloc/realloc/free/str*dup builtins, sincederaadt2017-07-281-0/+12
| | | | | | | | they can perform strange transforms and optimizations. Some of those could gain a slight advantage, but would avoid the variety of important runtime checks our malloc(3) code does. In essence, the transforms performed are considered "anti-mitigation". ok kettenis robert, discussions with others
* push back -pie to the linker if -pie is specified to avoid an unused argumentrobert2017-07-271-0/+3
| | | | | | warning ok kettenis@, deraadt@
* Enable -fwrapv by default with clang to treat signed integer overflowsjsg2017-06-061-1/+2
| | | | | | | | | | | | | as defined. This is done to prevent dangerous optimisations which could remove security critical overflow checks. Base gcc has -fno-strict-overflow by default, with clang this is identical to -fwrapv. Prompted by naddy@ discovering a hang with a clang compiled i386 kernel that was resolved with -fwrapv. ok kettenis@ pascal@
* Enable TLS support but default to the emulatated TLS model. Enable thekettenis2017-05-091-1/+2
| | | | | | | | runtime support code libcompiler_rt for this. This code uses functions that live in libpthread, so code that uses TLS support will need to be linked with -lpthread. This should allow more ports to build with base clang. ok espie@
* Merge LLVM 4.0.0 rc1patrick2017-01-243-1023/+2302
|
* Import LLVM 4.0.0 rc1 including clang and lld to help the currentpatrick2017-01-2415-644/+2214
| | | | development effort on OpenBSD/arm64.
* Make LLVM create strict aligned code for OpenBSD/arm64. We currentlypatrick2017-01-211-3/+7
| | | | | | | | don't enforce it yet, but we want to go down that road. Additionally the Pine64 seems to boot up with strict alignment on by default, so this also implicitly fixes efiboot on that hardware. ok kettenis@ phessler@ visa@
* Merge LLVM 3.9.1patrick2017-01-144-787/+2151
|
* Import LLVM 3.9.1 including clang and lld.patrick2017-01-1411-374/+1243
|
* With clang as cross-compiler we need to make it pass the library pathpatrick2017-01-042-3/+5
| | | | | | | to our linker. Additionally, we need to make sure the library path is prefixed with the cross directory, which is sysroot. ok kettenis@
* Disable -fstrict-aliasing per default on OpenBSD.pascal2016-09-271-2/+5
| | | | cluebat & ok kettenis@
* For now, force soft-float; our kernel doesn't support saving the FPU state yet.kettenis2016-09-171-0/+4
| | | | ok patrick@
* Link to -lcompiler_rt instead of -lgcc.pascal2016-09-061-8/+2
| | | | looks good to stefan@
* libunwind relies on the EH frame header. Our OpenBSD frontend codepatrick2016-09-051-1/+2
| | | | | | | does not tell our linker to produce that header for statically linked binaries. Just create that header for all binaries and we are fine. ok guenther@
* Let clang use libc++/libc++abi and its header files per default. You can stillpascal2016-09-052-0/+59
| | | | | | use the old libstdc++ by specifying -stdlib=libstdc++. with hints from/looks good to patrick@, ok kettenis@
* Link static PIEs with the correct C runtime (rcrt0.o).pascal2016-09-051-0/+4
| | | | ok kettenis@
* Use the space freed up by sparc and zaurus to import LLVM.pascal2016-09-0321-0/+23644
ok hackroom@