svn commit: r451718 - in head/lang/gcc6: . files
Andreas Tobler
andreast at FreeBSD.org
Tue Oct 10 19:17:20 UTC 2017
Author: andreast (src committer)
Date: Tue Oct 10 19:17:19 2017
New Revision: 451718
URL: https://svnweb.freebsd.org/changeset/ports/451718
Log:
Add support for armv7-*-freebsd*.
This patch is already upstreamed and can be dropped once a new GCC 6.x is
released.
PR: 221905
Submitted by: mmel@
Approved by: gerald@ (maintainer)
Added:
head/lang/gcc6/files/patch-armv7-support (contents, props changed)
Modified:
head/lang/gcc6/Makefile
Modified: head/lang/gcc6/Makefile
==============================================================================
--- head/lang/gcc6/Makefile Tue Oct 10 19:11:47 2017 (r451717)
+++ head/lang/gcc6/Makefile Tue Oct 10 19:17:19 2017 (r451718)
@@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 6
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
BROKEN_sparc64= fails to configure: cannot compute suffix of object files: cannot compile
LIB_DEPENDS= libgmp.so:math/gmp \
@@ -73,7 +73,7 @@ CONFIGURE_ENV+= UNAME_m="powerpc64"
USE_GCC= 5 # Cannot require ourselves, needs to be at least 4.9.
.endif
-.if ${ARCH} == aarch64 || ${ARCH} == armv6
+.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
. if ${COMPILER_TYPE} == clang
. if empty(PORT_OPTIONS:MBOOTSTRAP)
MAKE_ARGS+=CXXFLAGS=-fbracket-depth=512
Added: head/lang/gcc6/files/patch-armv7-support
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/gcc6/files/patch-armv7-support Tue Oct 10 19:17:19 2017 (r451718)
@@ -0,0 +1,28 @@
+---UTC
+--- gcc/config.gcc.orig 2017-01-09 22:01:26.582656000 +0100
++++ gcc/config.gcc 2017-10-07 17:27:59.564810000 +0200
+@@ -1072,6 +1072,10 @@
+ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
+ fi
+ ;;
++ armv7*-*-freebsd*)
++ tm_defines="${tm_defines} TARGET_FREEBSD_ARMv7=1"
++ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
++ ;;
+ esac
+ with_tls=${with_tls:-gnu}
+ ;;
+--- gcc/config/arm/freebsd.h.orig 2016-06-15 21:17:15.860618000 +0200
++++ gcc/config/arm/freebsd.h 2017-10-09 21:38:03.395632000 +0200
+@@ -112,7 +112,10 @@
+ #undef WCHAR_TYPE_SIZE
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+-#if defined (TARGET_FREEBSD_ARMv6)
++#if defined (TARGET_FREEBSD_ARMv7)
++#undef SUBTARGET_CPU_DEFAULT
++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_genericv7a
++#elif defined (TARGET_FREEBSD_ARMv6)
+ #undef SUBTARGET_CPU_DEFAULT
+ #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm1176jzs
+ #else
More information about the svn-ports-head
mailing list