Module Name:    src
Committed By:   mrg
Date:           Mon Feb  4 03:01:52 UTC 2019

Modified Files:
        src/external/gpl3/gcc/lib/libgomp: Makefile
        src/external/gpl3/gcc/usr.bin/common: Makefile
        src/external/gpl3/gcc/usr.bin/common-target: Makefile
Added Files:
        src/external/gpl3/gcc/lib/libgomp: defs.mk
        src/external/gpl3/gcc/usr.bin/common: defs.mk

Log Message:
move libgomp, libcommon and libcommon-target source lists into the
generated files.  libcommon-target has a per-arch list, but the
other two are the same.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/lib/libgomp/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libgomp/defs.mk
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/usr.bin/common/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/usr.bin/common/defs.mk
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/usr.bin/common-target/Makefile

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

Modified files:

Index: src/external/gpl3/gcc/lib/libgomp/Makefile
diff -u src/external/gpl3/gcc/lib/libgomp/Makefile:1.22 src/external/gpl3/gcc/lib/libgomp/Makefile:1.23
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.22	Sun Feb  3 12:11:11 2019
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Mon Feb  4 03:01:52 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2019/02/03 12:11:11 mrg Exp $
+#	$NetBSD: Makefile,v 1.23 2019/02/04 03:01:52 mrg Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
@@ -11,16 +11,11 @@ NOLINT=	# defined
 
 DIST=	${GCCDIST}
 
+
 LIB=	gomp
-# XXX mknative-gcc should pull out libgomp_la_SOURCES
-SRCS= \
-	alloc.c atomic.c barrier.c critical.c env.c error.c \
-	icv.c icv-device.c iter.c iter_ull.c loop.c loop_ull.c ordered.c \
-	parallel.c sections.c single.c task.c team.c work.c lock.c mutex.c \
-	proc.c sem.c bar.c ptrlock.c time.c fortran.c affinity.c target.c \
-	splay-tree.c libgomp-plugin.c oacc-parallel.c oacc-host.c oacc-init.c \
-	oacc-mem.c oacc-async.c oacc-plugin.c oacc-cuda.c priority_queue.c
 
+.include "${.CURDIR}/defs.mk"
+SRCS=	${G_libgomp_la_SOURCES}
 
 GOMP_MACHINE_ARCH?=	${MACHINE_ARCH:S/earmv5/earm/}
 ARCHDIR=		${.CURDIR}/arch/${GOMP_MACHINE_ARCH}

Index: src/external/gpl3/gcc/usr.bin/common/Makefile
diff -u src/external/gpl3/gcc/usr.bin/common/Makefile:1.7 src/external/gpl3/gcc/usr.bin/common/Makefile:1.8
--- src/external/gpl3/gcc/usr.bin/common/Makefile:1.7	Fri Feb  1 10:39:48 2019
+++ src/external/gpl3/gcc/usr.bin/common/Makefile	Mon Feb  4 03:01:52 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2019/02/01 10:39:48 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2019/02/04 03:01:52 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -7,20 +7,8 @@ LIBISPRIVATE=	yes
 
 LIB=		common
 
-# XXX pullout OBJS-libcommon-target
-SRCS=		diagnostic.c \
-		diagnostic-color.c \
-		diagnostic-show-locus.o \
-		edit-context.o \
-		pretty-print.c \
-		intl.c \
-		vec.c \
-		input.c \
-		version.c \
-		hash-table.c \
-		ggc-none.c \
-		memory-block.cc \
-		selftest.cc
+.include "${.CURDIR}/defs.mk"
+SRCS=	${G_OBJS-libcommon:.o=.c}
 
 # XXX make sure this doesn't have more than it needs
 CPPFLAGS+=	-I${GCCARCH} -I${BACKENDOBJ} -I. \

Index: src/external/gpl3/gcc/usr.bin/common-target/Makefile
diff -u src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.6 src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.7
--- src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.6	Fri Feb  1 10:39:48 2019
+++ src/external/gpl3/gcc/usr.bin/common-target/Makefile	Mon Feb  4 03:01:52 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2019/02/01 10:39:48 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2019/02/04 03:01:52 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -7,11 +7,8 @@ LIBISPRIVATE=	yes
 
 LIB=		common-target
 
-# XXX pullout OBJS-libcommon-target
-SRCS=		prefix.c params.c opts.c opts-common.c options.c vec.c \
-		hooks.c common-targhooks.c hash-table.c file-find.c \
-		spellcheck.c selftest.c \
-		${G_common_out_file:T}
+.include "${.CURDIR}/arch/${GCC_MACHINE_ARCH}.mk"
+SRCS=		${G_OBJS-libcommon-target:.o=.c}
 
 CPPFLAGS+=	-I${GCCARCH} -I${BACKENDOBJ} -I. \
 		${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \

Added files:

Index: src/external/gpl3/gcc/lib/libgomp/defs.mk
diff -u /dev/null src/external/gpl3/gcc/lib/libgomp/defs.mk:1.1
--- /dev/null	Mon Feb  4 03:01:52 2019
+++ src/external/gpl3/gcc/lib/libgomp/defs.mk	Mon Feb  4 03:01:52 2019
@@ -0,0 +1,5 @@
+# This file is automatically generated.  DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.97 2019/02/01 09:27:23 mrg Exp 
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
+#
+G_libgomp_la_SOURCES=alloc.c atomic.c barrier.c critical.c env.c error.c icv.c icv-device.c iter.c iter_ull.c loop.c loop_ull.c ordered.c parallel.c sections.c single.c task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c time.c fortran.c affinity.c target.c splay-tree.c libgomp-plugin.c oacc-parallel.c oacc-host.c oacc-init.c oacc-mem.c oacc-async.c oacc-plugin.c oacc-cuda.c priority_queue.c 

Index: src/external/gpl3/gcc/usr.bin/common/defs.mk
diff -u /dev/null src/external/gpl3/gcc/usr.bin/common/defs.mk:1.1
--- /dev/null	Mon Feb  4 03:01:52 2019
+++ src/external/gpl3/gcc/usr.bin/common/defs.mk	Mon Feb  4 03:01:52 2019
@@ -0,0 +1,5 @@
+# This file is automatically generated.  DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.97 2019/02/01 09:27:23 mrg Exp 
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
+#
+G_OBJS-libcommon=diagnostic.o diagnostic-color.o diagnostic-show-locus.o edit-context.o pretty-print.o intl.o vec.o input.o version.o hash-table.o ggc-none.o memory-block.o selftest.o

Reply via email to