svn commit: r451719 - in head/lang/gcc7: . files
Andreas Tobler
andreast at FreeBSD.org
Tue Oct 10 19:20:32 UTC 2017
Author: andreast (src committer)
Date: Tue Oct 10 19:20:31 2017
New Revision: 451719
URL: https://svnweb.freebsd.org/changeset/ports/451719
Log:
Add support for armv7-*-freebsd*.
This patch is already upstreamed, it can be dropped when a new GCC 7.x is
available.
PR: 221905
Approved by: gerald@ (maintainer)
Added:
head/lang/gcc7/files/patch-armv7-support (contents, props changed)
Modified:
head/lang/gcc7/Makefile
Modified: head/lang/gcc7/Makefile
==============================================================================
--- head/lang/gcc7/Makefile Tue Oct 10 19:17:19 2017 (r451718)
+++ head/lang/gcc7/Makefile Tue Oct 10 19:20:31 2017 (r451719)
@@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 7
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
@@ -62,7 +62,7 @@ CONFIGURE_ENV+= UNAME_m="powerpc64"
USE_GCC= yes
.endif
-.if ${ARCH} == armv6
+.if ${ARCH} == armv6 || ${ARCH} == armv7
. if ${COMPILER_TYPE} == clang
. if empty(PORT_OPTIONS:MBOOTSTRAP)
MAKE_ARGS+=CXXFLAGS+=-fbracket-depth=512
Added: head/lang/gcc7/files/patch-armv7-support
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/gcc7/files/patch-armv7-support Tue Oct 10 19:20:31 2017 (r451719)
@@ -0,0 +1,21 @@
+---UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc (revision 253513)
++++ gcc/config.gcc (working copy)
+@@ -1077,11 +1077,14 @@
+ case $target in
+ armv6*-*-freebsd*)
+ target_cpu_cname="arm1176jzfs"
+- tm_defines="${tm_defines} TARGET_FREEBSD_ARMv6=1"
+ if test $fbsd_major -ge 11; then
+ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
+ fi
+ ;;
++ armv7*-*-freebsd*)
++ target_cpu_cname="genericv7a"
++ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
++ ;;
+ *)
+ target_cpu_cname="arm9"
+ ;;
More information about the svn-ports-head
mailing list