Module Name:    src
Committed By:   mrg
Date:           Sat Jan 19 12:58:37 UTC 2019

Modified Files:
        src/share/mk: bsd.own.mk
        src/tools/gcc: Makefile gcc-version.mk

Log Message:
obsolete gcc 5 support.
add gcc 7 support.  call it "nb1 20190119"


To generate a diff of this commit:
cvs rdiff -u -r1.1094 -r1.1095 src/share/mk/bsd.own.mk
cvs rdiff -u -r1.87 -r1.88 src/tools/gcc/Makefile
cvs rdiff -u -r1.12 -r1.13 src/tools/gcc/gcc-version.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1094 src/share/mk/bsd.own.mk:1.1095
--- src/share/mk/bsd.own.mk:1.1094	Wed Jan  9 23:52:29 2019
+++ src/share/mk/bsd.own.mk	Sat Jan 19 12:58:37 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1094 2019/01/09 23:52:29 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1095 2019/01/19 12:58:37 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -72,6 +72,8 @@ MKGCCCMDS?=	no
 #
 .if ${HAVE_GCC} == 6
 EXTERNAL_GCC_SUBDIR?=	gcc.old
+.elif ${HAVE_GCC} == 7
+EXTERNAL_GCC_SUBDIR?=	gcc
 .else
 EXTERNAL_GCC_SUBDIR=?	/does/not/exist
 .endif

Index: src/tools/gcc/Makefile
diff -u src/tools/gcc/Makefile:1.87 src/tools/gcc/Makefile:1.88
--- src/tools/gcc/Makefile:1.87	Fri Oct 19 16:16:21 2018
+++ src/tools/gcc/Makefile	Sat Jan 19 12:58:37 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.87 2018/10/19 16:16:21 maya Exp $
+#	$NetBSD: Makefile,v 1.88 2019/01/19 12:58:37 mrg Exp $
 
 .include <bsd.hostinit.mk>
 
@@ -8,7 +8,7 @@ MODULE=			gcc4
 GCCDIST=	${.CURDIR}/../../external/gpl3/${EXTERNAL_GCC_SUBDIR}/dist
 GNUHOSTDIST=	${GCCDIST}
 
-.if ${HAVE_GCC} == 5
+.if ${HAVE_GCC} == 6
 MKNATIVE=		${.CURDIR}/mknative-gcc.old
 .endif
 
@@ -47,10 +47,7 @@ COMMON_CONFIGURE_ARGS+=	--with-arch=${GC
 COMMON_CONFIGURE_ARGS+=	--with-tune=${GCC_CONFIG_TUNE.${MACHINE_ARCH}}
 .endif
 
-.if ${HAVE_GCC} >= 5
-# Turn on colour output only if GCC_COLORS env is set
 COMMON_CONFIGURE_ARGS+= --with-diagnostics-color=auto-if-env
-.endif
 
 CONFIGURE_ARGS=	${COMMON_CONFIGURE_ARGS}
 CONFIGURE_ARGS+= \
@@ -89,10 +86,10 @@ MKNATIVE_CONFIG_TARGET_LIBS=
 
 MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgcc
 MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgomp
-.if ${HAVE_GCC} == 6
+.if ${HAVE_GCC} == 7
+MKNATIVE_TARGET=	gcc7
+.elif ${HAVE_GCC} == 6
 MKNATIVE_TARGET=	gcc6
-.elif ${HAVE_GCC} == 5
-MKNATIVE_TARGET=	gcc5
 .endif
 
 MKNATIVE_CONFIG_TARGET_LIBS+= \

Index: src/tools/gcc/gcc-version.mk
diff -u src/tools/gcc/gcc-version.mk:1.12 src/tools/gcc/gcc-version.mk:1.13
--- src/tools/gcc/gcc-version.mk:1.12	Sun Nov 11 23:05:25 2018
+++ src/tools/gcc/gcc-version.mk	Sat Jan 19 12:58:37 2019
@@ -1,9 +1,9 @@
-#	$NetBSD: gcc-version.mk,v 1.12 2018/11/11 23:05:25 mrg Exp $
+#	$NetBSD: gcc-version.mk,v 1.13 2019/01/19 12:58:37 mrg Exp $
 
 # common location for tools and native build
 
 .if ${HAVE_GCC} == 6
 NETBSD_GCC_VERSION=nb4 20181109
 .elif ${HAVE_GCC} == 7
-NETBSD_GCC_VERSION=nb1 20180905
+NETBSD_GCC_VERSION=nb1 20190119
 .endif

Reply via email to