Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 12:11:36 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466045 - in head/lang: gcc5 gcc5/files gcc6 gcc6-devel gcc6-devel/files gcc6/files gcc7 gcc7-devel gcc7-devel/files gcc7/files gcc8-devel gcc8-devel/files
Message-ID:  <201803311211.w2VCBaYl033461@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Mar 31 12:11:36 2018
New Revision: 466045
URL: https://svnweb.freebsd.org/changeset/ports/466045

Log:
  Allow gcc compilers to be built on new arch 'powerpcspe'.
  
  Tested for no-harm on amd64.
  
  Submitted by:		jhibbits
  Approved by:		portmgr (tier-2 blanket)
  Differential Revision:	D13126

Added:
  head/lang/gcc5/files/patch-spe-config   (contents, props changed)
  head/lang/gcc6-devel/files/patch-spe-config   (contents, props changed)
  head/lang/gcc6/files/patch-spe-config   (contents, props changed)
  head/lang/gcc7-devel/files/patch-spe-config   (contents, props changed)
  head/lang/gcc7/files/patch-spe-config   (contents, props changed)
  head/lang/gcc8-devel/files/patch-spe-config   (contents, props changed)
Modified:
  head/lang/gcc5/Makefile
  head/lang/gcc6-devel/Makefile
  head/lang/gcc6/Makefile
  head/lang/gcc7-devel/Makefile
  head/lang/gcc7/Makefile
  head/lang/gcc8-devel/Makefile

Modified: head/lang/gcc5/Makefile
==============================================================================
--- head/lang/gcc5/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc5/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -15,7 +15,7 @@ LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
 DEPRECATED=	Unsupported by upstream. Use GCC 6 or newer instead.
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 i386 powerpc powerpc64 powerpcspe sparc64
 BROKEN_sparc64=	Does not build: bootstrap comparison failure
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
@@ -66,6 +66,9 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
 
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc5/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc5/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;

Modified: head/lang/gcc6-devel/Makefile
==============================================================================
--- head/lang/gcc6-devel/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc6-devel/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 6
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr \
@@ -81,6 +81,9 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
 USE_GCC=	5	# Cannot require ourselves, needs to be at least 4.9.
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc6-devel/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc6-devel/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;

Modified: head/lang/gcc6/Makefile
==============================================================================
--- head/lang/gcc6/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc6/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 6
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
 BROKEN_sparc64=	fails to configure: cannot compute suffix of object files: cannot compile
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
@@ -79,6 +79,9 @@ MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
 USE_GCC=	5	# Cannot require ourselves, needs to be at least 4.9.
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc6/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc6/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;

Modified: head/lang/gcc7-devel/Makefile
==============================================================================
--- head/lang/gcc7-devel/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc7-devel/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 7
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr \
@@ -65,6 +65,9 @@ CONFIGURE_TARGET=	x86_64-portbld-${OPSYS:tl}${OSREL}
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
 USE_GCC=	yes
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc7-devel/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc7-devel/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;

Modified: head/lang/gcc7/Makefile
==============================================================================
--- head/lang/gcc7/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc7/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 7
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr \
@@ -59,6 +59,9 @@ CONFIGURE_TARGET=	x86_64-portbld-${OPSYS:tl}${OSREL}
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
 USE_GCC=	yes
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc7/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc7/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2285,6 +2285,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} rs6000/freebsd.h rs6000/linuxspe.h rs6000/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;

Modified: head/lang/gcc8-devel/Makefile
==============================================================================
--- head/lang/gcc8-devel/Makefile	Sat Mar 31 12:09:10 2018	(r466044)
+++ head/lang/gcc8-devel/Makefile	Sat Mar 31 12:11:36 2018	(r466045)
@@ -14,7 +14,7 @@ COMMENT=	GNU Compiler Collection 8
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
+ONLY_FOR_ARCHS=	aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpcspe sparc64
 
 LIB_DEPENDS=	libgmp.so:math/gmp \
 		libmpfr.so:math/mpfr \
@@ -63,6 +63,9 @@ CONFIGURE_TARGET=	x86_64-portbld-${OPSYS:tl}${OSREL}
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
 USE_GCC=	yes
+
+.elif ${ARCH} == powerpcspe
+CONFIGURE_ARGS+=	--with-cpu=8540 --enable-e500_double --without-fp
 .endif
 
 LANGUAGES:=	c,c++,objc,fortran

Added: head/lang/gcc8-devel/files/patch-spe-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcc8-devel/files/patch-spe-config	Sat Mar 31 12:11:36 2018	(r466045)
@@ -0,0 +1,15 @@
+--- UTC
+Index: gcc/config.gcc
+===================================================================
+--- gcc/config.gcc.old	2017-04-05 17:48:03.045750000 -0500
++++ gcc/config.gcc	2017-04-05 17:49:22.143572000 -0500
+@@ -2383,6 +2383,9 @@
+ 		tmake_file="${tmake_file} rs6000/t-freebsd64"
+ 		extra_options="${extra_options} rs6000/linux64.opt"
+ 		;;
++	    powerpcspe-*)
++		tm_file="${tm_file} powerpcspe/freebsd.h powerpcspe/linuxspe.h powerpcspe/e500.h"
++		;;
+ 	     *)
+ 	        tm_file="${tm_file} rs6000/freebsd.h"
+ 		;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803311211.w2VCBaYl033461>