152 Commits

Author SHA1 Message Date
ajacoutot
84c0cec54f Disable colored diagnostics.
from Brad (MAINTAINER)
2017-04-17 14:20:17 +00:00
ajacoutot
f2d1f7c552 Updated diff for the "supported targets" change.
from Brad (maintainer)
2017-03-25 14:00:47 +00:00
ajacoutot
ba18ac3dee - Bring in an LLD workaround from base
- Add "(compatible with GNU linkers)" to the -version output
- Print out "supported targets".
- Update/fix PIE defaults
- -z nodlopen has been commited upstream

from Brad (maintainer)
2017-03-23 08:26:07 +00:00
ajacoutot
afd425d9a6 Bring in some commits from base for Clang and lld.
from Brad (maintainer)
2017-03-18 20:49:42 +00:00
ajacoutot
34055b270c Update to llvm-4.0.0.
from Brad (maintainer)
2017-03-14 17:29:45 +00:00
ajacoutot
4b4b0fe984 Fix types for OpenBSD/mips64.
from Brad (maintainer)
2017-03-01 08:55:28 +00:00
ajacoutot
10d489c140 Bring in from base:
Disable loop idiom recognition for _libc_memset and _libc_memcpy.  These are
the internal names we use in libc for memset and memcpy and having the
compiler optimize them as calls to memset and memcpy will lead to infinite
recursion.

from Brad (maintainer)
2017-02-26 13:34:23 +00:00
ajacoutot
53ed80a575 Fix OpenBSD/aarch64 types.
from Brad (maintainer)
2017-02-22 09:06:11 +00:00
ajacoutot
c1e1e48e46 Sync both the --eh-frame-hdr and float128 diffs to what was commited
upstream.

from Brad (maintainer)
2017-02-20 07:04:00 +00:00
jca
3e62fdd5fa Use -mlong-calls on arm and powerpc to work around relocations overflow
On those architectures the .text section of the executables is too big
for the 32M immediate branch offset.  ld --relax is supposed to fix
things on powerpc, but it is actually ineffective here.  cc -mlong-calls
creates branches instructions using a full 32 bits register; FreeBSD
uses the same workaround.

A fix for lib/csu is still needed to avoid an overflow between .init
and .fini sections.  powerpc hasn't been tested, but we know that
devel/llvm is already broken there anyway.

ok Brad (maintainer)
2017-02-16 15:07:16 +00:00
ajacoutot
416cf24370 Disable -Wpointer-sign warnings per default; base gcc does the same.
from Brad (maintainer)
2017-02-12 11:25:19 +00:00
ajacoutot
d117846858 Update to llvm-4.0.0rc2.
- survived a bulk on i386 and amd64

from Brad (maintainer)
2017-02-10 09:37:43 +00:00
bluhm
413a6b64d5 Create subpackage py-llvm that contains the Python bindings for Clang.
Bump revision of llvm main package and x11/gnome/builder.
OK Brad Smith (maintainer) ajacoutot@ sthen@
2017-01-08 01:59:49 +00:00
ajacoutot
fcc542f9cd Unbreak on powerpc: don't build lld there.
from Brad (maintainer)
2017-01-01 10:48:58 +00:00
jca
9e8193109a Broken on powerpc: undefined reference to `__atomic_load_8' 2016-12-31 20:48:31 +00:00
ajacoutot
75d8613809 Update to llvm-3.9.1.
from Brad (maintainer)
2016-12-22 11:07:13 +00:00
jsg
5303dd0961 Recognise an OpenBSD aarch64 triple. This enables some OpenBSD specific
builtin defines such as __OpenBSD__.  Same patch that patrick committed
to llvm in base.

ok patrick@
2016-12-21 09:27:57 +00:00
ajacoutot
452bb4660b Sync with what was committed upstream (Disable the use of std::call_once
on OpenBSD with libstdc++).


from Brad (maintainer)
2016-11-02 07:46:33 +00:00
ajacoutot
b99df0def6 Add patch from upstream to fix the build issue with CMake.
fom Brad (maintainer)
2016-10-18 06:59:02 +00:00
sthen
eb38ea3807 don't build lld on i386, it needs __atomic_load_8. ok aja@ 2016-10-12 11:04:38 +00:00
ajacoutot
6e0f1195c3 Enable building lld.
from Brad (maintainer)
2016-10-09 06:47:10 +00:00
ajacoutot
4c4e51995d Update to LLVM 3.9.0.
Been through bulks on amd64 / i386 by sthen@ and naddy@ respectively.

from Brad (maintainer)
2016-10-07 08:55:30 +00:00
ajacoutot
98ceb2afe1 Disable -fstrict-aliasing per default on OpenBSD.
from Brad (maintainer)
2016-09-28 07:16:23 +00:00
ajacoutot
dd092f3f2c Adjust default CPU for OpenBSD/arm and set proper ABI.
from Brad (maintainer)
2016-09-24 12:35:38 +00:00
ajacoutot
b939f1507b Merge in the fix clang types force soft-float on arm patches.
from Brad (maintainer)
2016-09-18 07:46:32 +00:00
ajacoutot
c1e2926500 - Remove an obsolete patch that was for the GNU make build infrastructure
- Merge in the stack protector and EH frame header patches

from Brad (maintainer)
2016-09-13 07:47:41 +00:00
pascal
aa823a61b1 adjust for GCC update. 2016-09-01 17:32:16 +00:00
ajacoutot
6d9a673128 Update to llvm-3.8.1.
from Brad (maintainer)
2016-07-31 17:49:38 +00:00
stefan
82a7713f75 Make clang build working binaries by linking against rcrt0 when
building static PIE binaries. This is also what Bitrig does

ok tobiasu@ sthen@
2016-07-06 16:33:35 +00:00
ajacoutot
c159857a43 Select proper SPARCv9 variant for the assembler.
from Brad (maintainer)
2016-05-24 07:53:23 +00:00
ajacoutot
526c785d36 Enable the integrated assembler on Mips64 and Sparc.
from Brad (maintainer)
2016-05-15 07:07:52 +00:00
ajacoutot
99e4144510 Update to llvm-3.8.0.
from Brad (maintainer)
2016-05-14 20:36:36 +00:00
sthen
35d936a290 don't allow llvm to pick up go 2016-04-29 08:40:07 +00:00
pascal
f670fda3b4 Do not #include <execinfo.h> if it is not needed.
found by naddy@
2016-03-15 21:33:19 +00:00
pascal
79e658178f Correct LLVM linker patch: -L arguments passed on the command line need to be
processed *before* adding default -L directories.  Fixes
mail/mozilla-thunderbird.

ok landry@
2016-03-07 17:03:04 +00:00
pascal
ba0dd5ada1 Update to LLVM 3.7.1. This version is modified to use C++ includes from
ports GCC and link to libestdc++.

Currently, this still breaks mail/mozilla-thunderbird, which will be taken care
of shortly.

feedback/testing from jsg landry mmcc semarie aja naddy (hope I didn't forget
anyone)

ok landry robert
2016-03-05 15:31:40 +00:00
ajacoutot
4413e0aa9e Backport commit from upstream LLVM:
r219009
[ISel] Keep matching state consistent when folding during X86 address match

from Brad (maintainer)
2015-08-24 07:45:56 +00:00
ajacoutot
b7bb2156ba Backport commit from upstream LLVM:
r239046
[SPARC] Fix types of size_t, intptr_t, and ptrdiff_t on Linux.

from brad (maintainer)
2015-06-15 06:20:48 +00:00
ajacoutot
3e488945c1 Add SVN commit id.
from brad (maintainer)
2015-06-04 09:04:44 +00:00
ajacoutot
fd433c3589 Backport commit from upstream LLVM:
r229911
MC: Allow multiple comma-separated expressions on the .uleb128 directive.

from brad (maintainer)
2015-06-04 05:58:43 +00:00
ajacoutot
2e9e3c497d Have sparc use -fPIE by default.
from brad (maintainer)
2015-06-03 06:23:21 +00:00
ajacoutot
2448967a5b Backport commit from upstream LLVM: r236179
Propagate a terrible hack to the sparc target feature handling code
by erasing the soft-float target feature if the rest of the front
end added it because of defaults or the soft float option.

from brad (maintainer)
2015-05-21 05:37:50 +00:00
ajacoutot
693adec6b2 Backport commits from upstream LLVM.
r237580
Add support for the Sparc implementation-defined "ASR" registers.

r237581
Sparc: Add the "alternate address space" load/store instructions.

- Adds support for the asm syntax, which has an immediate integer
  "ASI" (address space identifier) appearing after an address, before
  a comma.

- Adds the various-width load, store, and swap in alternate address
  space instructions. (ldsba, ldsha, lduba, lduha, lda, stba, stha,
  sta, swapa)

r237582
Sparc: Support PSR, TBR, WIM read/write instructions

from brad (maintainer)
2015-05-19 05:33:38 +00:00
ajacoutot
9b0b92263c Backport commits from upstream LLVM.
r236042
Sparc: Add alternate aliases for conditional branch instructions.

r236107
Sparc: Prefer reg+reg address encoding when only one register used.

r236137
Make Sparc assembler accept parenthesized constant expressions.

from brad (maintainer)
2015-05-11 23:21:51 +00:00
sthen
38e151ecc1 Backport commit from upstream Clang/LLVM, from Brad (maintainer).
r211785
Implement the -fuse-ld= option.

This commit implements the -fuse-ld= option, so that the user
can specify -fuse-ld=bfd to use ld.bfd.
2015-04-09 22:25:02 +00:00
brad
ec010cbf26 r228507
Avoid integer overflows around realloc calls resulting in potential
heap. Problem identified by Guido Vranken.

r225819
Use the integrated assembler as default on PowerPC
r225957
Use the integrated assembler by default on SPARC.
r225958
Use the integrated assembler by default on 32-bit PowerPC and SPARC.
2015-02-11 00:29:05 +00:00
brad
8691b692bf r202719
Don't emit a blank line when running llvm-config --system-libs.
2015-01-22 12:29:36 +00:00
brad
ef8d048a5d Commited upstream. 2015-01-06 00:58:02 +00:00
brad
8d28f1b005 Contrary to pascal@'s disbelief there does seem to be an issue with PIE. Have
the build disable PIE on PowerPC as a workaround for the time being until it
can be determined what the issue is and fixed properly.

Workarounded provided by pascal@
2015-01-03 00:54:12 +00:00
brad
5189bb6550 r223708
[PowerPC] Don't use a non-allocatable register to implement the 'cc' alias
2014-12-30 22:41:09 +00:00