Index: lang/gcc5/Makefile =================================================================== --- lang/gcc5/Makefile +++ lang/gcc5/Makefile @@ -13,7 +13,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 i386 powerpc powerpcspe powerpc64 sparc64 BROKEN_sparc64= Does not build: bootstrap comparison failure LIB_DEPENDS= libgmp.so:math/gmp \ @@ -57,6 +57,10 @@ .if ${ARCH} == powerpc64 CONFIGURE_ENV+= UNAME_m="powerpc64" +.endif + +.if ${ARCH} == powerpcspe +CONFIGURE_ARGS+= --with-cpu=8540 --enable-e500_double --without-fp .endif .if ${ARCH} == aarch64 || ${ARCH} == armv6 Index: lang/gcc5/files/patch-spe-config =================================================================== --- /dev/null +++ lang/gcc5/files/patch-spe-config @@ -0,0 +1,11 @@ +--- 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,8 @@ + 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" + ;;