diff options
author | marino <marino@FreeBSD.org> | 2017-02-04 23:20:12 +0000 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2017-02-04 23:20:12 +0000 |
commit | 8cbf618ec269abef61830228ce912a06c0bb1cde (patch) | |
tree | a913af387cbf049e9af2883c0a94c7556f1b5277 | |
parent | 1c92f6b256d1b8a6595c1bc3298c7347293a7738 (diff) | |
download | FreeBSD-ports-8cbf618ec269abef61830228ce912a06c0bb1cde.zip FreeBSD-ports-8cbf618ec269abef61830228ce912a06c0bb1cde.tar.gz |
lang/gcc6-aux: Add support for aarch64-*-freebsd*
The resultant compiler passes all test except:
* The stack-check related ones [1]
* c34005o and c34007i [2]
This should enable the full Ada framework, including Synth, on
FreeBSD/ARM64. I am not yet able to test this myself since I'm not part
of the wheel group on the aarch64 reference machines.
[1] I will look into providing the missing unwind support for aarch64
which would be something to push upstream to gcc
[2] I'll ask Adacore about these GNAT ICE (internal compiler errors) and
open GCC PRs if necessary since they could affect other aarch64
platforms.
-rw-r--r-- | lang/gcc6-aux/Makefile | 16 | ||||
-rw-r--r-- | lang/gcc6-aux/distinfo | 4 |
2 files changed, 14 insertions, 6 deletions
diff --git a/lang/gcc6-aux/Makefile b/lang/gcc6-aux/Makefile index 0e5063f..2fef136 100644 --- a/lang/gcc6-aux/Makefile +++ b/lang/gcc6-aux/Makefile @@ -24,7 +24,7 @@ GARCH= ${ARCH:S/amd64/x86_64/} BOOTSTRAP_COMPILER= gnat-bootstrap.${GARCH}.${OPSYS:tl}.tar.bz2 BLD_TARGET= ${GARCH}-aux-${OPSYS:tl}${OSREL} FULL_GNATGCC= NOT_SET -OS_LABEL4VERS= [${OPSYS}${GARCH:M*64:S/amd_//:S/x86_//}] +OS_LABEL4VERS= [${OPSYS}${GARCH:S/amd//:S/x86_//:S/aarch/\/ARM/:S/i386/32/}] NO_MTREE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -49,13 +49,17 @@ BOOTSTRAP_DESC= Create bootstrap compiler (overrides other options) .include <bsd.port.options.mk> .if ${OPSYS} == FreeBSD -ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS= amd64 i386 aarch64 MODERN_BINUTILS= yes +. if ${ARCH} == aarch64 +BOOTSTRAP_COMPILER= ada-bootstrap.aarch64.freebsd.120.tar.bz2 +. else BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.freebsd.100B.tar.bz2 +. endif .endif .if ${OPSYS} == DragonFly ONLY_FOR_ARCHS= x86_64 -BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.dragonfly.41.tar.bz2 +BOOTSTRAP_COMPILER= ada-bootstrap.x86_64.dragonfly.41.tar.bz2 .endif .if defined(MODERN_BINUTILS) @@ -109,7 +113,8 @@ DISTFILES= \ ${IDENTIFICATION}.tar.bz2 \ ada-bootstrap.i386.freebsd.100B.tar.bz2:boot \ ada-bootstrap.x86_64.dragonfly.41.tar.bz2:boot \ - ada-bootstrap.x86_64.freebsd.100B.tar.bz2:boot + ada-bootstrap.x86_64.freebsd.100B.tar.bz2:boot \ + ada-bootstrap.aarch64.freebsd.120.tar.bz2:boot .endif .if ${PORT_OPTIONS:MFORTRAN} && !${PORT_OPTIONS:MBOOTSTRAP} @@ -204,7 +209,8 @@ post-extract: -e 's;\@GCCAUX\@;${PORTNAME};' \ ${WRKSRC}/gcc/config/dragonfly.h \ ${WRKSRC}/gcc/config/i386/freebsd64.h \ - ${WRKSRC}/gcc/config/i386/freebsd.h + ${WRKSRC}/gcc/config/i386/freebsd.h \ + ${WRKSRC}/gcc/config/aarch64/aarch64-freebsd.h .if defined(MODERN_BINUTILS) # Use dwarf4-compatible addr2line (affects FreeBSD only) ${REINPLACE_CMD} -e 's|/usr/bin/addr2line|${PREFIX}/bin/addr2line|g' \ diff --git a/lang/gcc6-aux/distinfo b/lang/gcc6-aux/distinfo index 5f20e3f..bd95151 100644 --- a/lang/gcc6-aux/distinfo +++ b/lang/gcc6-aux/distinfo @@ -1,4 +1,4 @@ -TIMESTAMP = 1486228092 +TIMESTAMP = 1486228714 SHA256 (gcc-6-20170202.tar.bz2) = 339411f9ec780ba1f779417ea2a3206b69ee11de293aea27fff4658d7e56d0c5 SIZE (gcc-6-20170202.tar.bz2) = 95743873 SHA256 (ada-bootstrap.i386.freebsd.100B.tar.bz2) = 7231209f2600275f554f788ad1d036cf633c4339ebd25bd479a5bb1ddcddedf3 @@ -7,3 +7,5 @@ SHA256 (ada-bootstrap.x86_64.dragonfly.41.tar.bz2) = eb7785d8b842aee2bb04b43adfb SIZE (ada-bootstrap.x86_64.dragonfly.41.tar.bz2) = 44956630 SHA256 (ada-bootstrap.x86_64.freebsd.100B.tar.bz2) = 1066d7c5e71d78b4416de3b73348227678ca07db52488409e270db7b00467f55 SIZE (ada-bootstrap.x86_64.freebsd.100B.tar.bz2) = 42163803 +SHA256 (ada-bootstrap.aarch64.freebsd.120.tar.bz2) = 84d96268e864564bc4adddf54bac492ff74a0d7112c13283512542cde71663e7 +SIZE (ada-bootstrap.aarch64.freebsd.120.tar.bz2) = 53840614 |