CVS commit: src/external/gpl3/gcc/lib

2024-02-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 25 06:07:28 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
sanitizer needs at least i586 on x86 and at least v8 on sparc, unfortunately.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/lib/Makefile.sanitizer

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/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.17 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.18
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.17	Thu Aug  3 01:36:54 2023
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sun Feb 25 06:07:28 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.17 2023/08/03 01:36:54 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.18 2024/02/25 06:07:28 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -123,3 +123,13 @@ COPTS.sanitizer_symbolizer_report.cc += 
 COPTS.ubsan_diag.cc += -O1
 COPTS.ubsan_init.cc += -O1
 .endif
+
+# XXX GCC 12 sanitizers has higher minimal requirements upon some CPUs.
+# - 32-bit SPARC needs v8 to supply eg __sync_add_and_fetch_4
+# - i386 needs i586 for __sync_val_compare_and_swap_8.
+.if ${MACHINE_ARCH} == "sparc"
+COPTS+= -mcpu=v8
+.endif
+.if ${MACHINE_ARCH} == "i386"
+COPTS+= -march=i586
+.endif



CVS commit: src/external/gpl3/gcc/lib

2024-02-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 25 06:07:28 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
sanitizer needs at least i586 on x86 and at least v8 on sparc, unfortunately.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/lib/Makefile.sanitizer

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



CVS commit: src/external/gpl3/gcc/lib/libiberty

2024-02-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 25 03:55:44 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib/libiberty: defs.mk

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libiberty/defs.mk

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/libiberty/defs.mk
diff -u src/external/gpl3/gcc/lib/libiberty/defs.mk:1.30 src/external/gpl3/gcc/lib/libiberty/defs.mk:1.31
--- src/external/gpl3/gcc/lib/libiberty/defs.mk:1.30	Mon Jul 31 04:46:22 2023
+++ src/external/gpl3/gcc/lib/libiberty/defs.mk	Sun Feb 25 03:55:44 2024
@@ -1,8 +1,8 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.116 2022/07/22 06:50:26 mrg Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.118 2024/02/21 08:24:46 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_ALLOCA=
 G_EXTRA_OFILES=
-G_LIBOBJS=mempcpy.o strverscmp.o
+G_LIBOBJS=strverscmp.o
 G_REQUIRED_OFILES=regex.o cplus-dem.o cp-demangle.o md5.o sha1.o alloca.o argv.o bsearch_r.o choose-temp.o concat.o cp-demint.o crc32.o d-demangle.o dwarfnames.o dyn-string.o fdmatch.o fibheap.o filedescriptor.o filename_cmp.o floatformat.o fnmatch.o fopen_unlocked.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o physmem.o pex-common.o pex-one.o pex-unix.o vprintf-support.o rust-demangle.o safe-ctype.o simple-object.o simple-object-coff.o simple-object-elf.o simple-object-mach-o.o simple-object-xcoff.o sort.o spaces.o splay-tree.o stack-limit.o strerror.o strsignal.o timeval-utils.o unlink-if-ordinary.o xasprintf.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o xstrndup.o xvasprintf.o



CVS commit: src/external/gpl3/gcc/lib/libiberty

2024-02-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 25 03:55:44 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib/libiberty: defs.mk

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libiberty/defs.mk

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



CVS commit: src/external/gpl3/gcc/lib

2024-02-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb 21 09:06:57 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
build the C++20 sstream-inst.cc.

fixes link errors in libreoffice reported by rjs on current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib

2024-02-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb 21 09:06:57 UTC 2024

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
build the C++20 sstream-inst.cc.

fixes link errors in libreoffice reported by rjs on current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.54 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.55
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.54	Tue Aug  1 05:57:57 2023
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Wed Feb 21 09:06:56 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.54 2023/08/01 05:57:57 mrg Exp $
+#	$NetBSD: Makefile,v 1.55 2024/02/21 09:06:56 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -161,7 +161,8 @@ BUILDSYMLINKS+=	\
 	codecvt 98 11 \
 	cow-string-inst 11 17 \
 	ostream-inst 11 17 \
-	string-inst 11 17
+	string-inst 11 17 \
+	sstream-inst 11 20
 
 BUILDSYMLINKS+=	\
 	${GLIBCXX_SRCDIR}/src/c++${_V1}/${_N}.cc c${_V1}-${_N}.cc

Index: src/external/gpl3/gcc/lib/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.20 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.21
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.20	Fri Jul 22 07:09:25 2022
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Wed Feb 21 09:06:56 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.20 2022/07/22 07:09:25 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.21 2024/02/21 09:06:56 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -18,20 +18,24 @@ LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARC
 # Deal with renamed sources.  Needs to match a loop in libstdc++-v3/Makefile.
 BUILD_CPP98_SOURCES=	${G_CPP98_SOURCES:Ncodecvt.cc} \
 			c98-codecvt.cc
-BUILD_CPP11_SOURCES=	${G_CPP11_SOURCES:Ncodecvt.cc:Ncow-string-inst.cc:Nostream-inst.cc:Nstring-inst.cc} \
+BUILD_CPP11_SOURCES=	${G_CPP11_SOURCES:Ncodecvt.cc:Ncow-string-inst.cc:Nostream-inst.cc:Nstring-inst.cc:Nsstream-inst.cc} \
 			c11-codecvt.cc \
 			c11-cow-string-inst.cc \
 			c11-ostream-inst.cc \
-			c11-string-inst.cc
+			c11-string-inst.cc \
+			c11-sstream-inst.cc
 BUILD_CPP17_SOURCES=	${G_CPP17_SOURCES:Ncow-string-inst.cc:Nostream-inst.cc:Nstring-inst.cc} \
 			c17-cow-string-inst.cc \
 			c17-ostream-inst.cc \
 			c17-string-inst.cc
+BUILD_CPP20_SOURCES=	${G_CPP20_SOURCES:Nsstream-inst.cc} \
+			c20-sstream-inst.cc
 
 LIBSTDCXXSRCS=	${G_SRC_SOURCES} \
 		${BUILD_CPP98_SOURCES} \
 		${BUILD_CPP11_SOURCES} \
-		${BUILD_CPP17_SOURCES}
+		${BUILD_CPP17_SOURCES} \
+		${BUILD_CPP20_SOURCES}
 # XXX XXX dir.o doesn't have  stuff properly, leave it out for now
 #LIBSTDCXXSRCS+=	${G_FILESYSTEM_SOURCES}
 
@@ -94,6 +98,10 @@ COPTS.${_f}+=	-std=gnu++1z
 COPTS.${_f}+=	-std=gnu++17 -fimplicit-templates
 .endfor
 
+.for _f in ${BUILD_CPP20_SOURCES}
+COPTS.${_f}+=	-std=gnu++20 -fimplicit-templates
+.endfor
+
 .for _f in dir ops fs_dir fs_ops cow-fs_dir cow-fs_ops
 ${_f}.o ${_f}.d ${_f}.pico ${_f}.po: bits/largefile-config.h
 .endfor



CVS commit: src/external/gpl3/gcc/lib/libasan

2023-08-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug  4 08:58:43 UTC 2023

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
make this build on m68k (fails on m68000.)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/external/gpl3/gcc/lib/libasan/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/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.34 src/external/gpl3/gcc/lib/libasan/Makefile:1.35
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.34	Thu Aug  3 01:36:55 2023
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Fri Aug  4 08:58:42 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2023/08/03 01:36:55 mrg Exp $
+# $NetBSD: Makefile,v 1.35 2023/08/04 08:58:42 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -63,4 +63,10 @@ COPTS.ubsan_init.cpp += -O1
 COPTS.asan_interceptors.cpp += -O1
 .endif
 
+# This helps, but isn't enough.
+.if ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m68000"
+COPTS.asan_interceptors.cpp += -fno-jump-tables -Os
+COPTS.asan_interceptors.cpp += -mlong-jump-table-offsets -Os
+.endif
+
 .include 



CVS commit: src/external/gpl3/gcc/lib/libasan

2023-08-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Aug  4 08:58:43 UTC 2023

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
make this build on m68k (fails on m68000.)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/external/gpl3/gcc/lib/libasan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libgcc

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:59:11 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
arm64 needs additional lse.S builds with GCC 10.4.0.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.51 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.52
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.51	Sun Apr 25 23:12:54 2021
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Fri Jul 22 21:59:11 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.51 2021/04/25 23:12:54 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.52 2022/07/22 21:59:11 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
@@ -175,7 +175,7 @@ ${LIB1ASMFUNCS}: ${.CURDIR}/Makefile
 # XXX lse.S objects are placed directly into "libgcc-objects" for GCC, and
 # are not pulled out by mknative-gcc easily.
 . for s in 1 2 4 8 16
-.  for m in 1 2 3 4
+.  for m in 1 2 3 4 5
 .   for n in cas
 LSE_NAMES+=			${n}_${s}_${m}
 CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}
@@ -184,7 +184,7 @@ CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZ
 . endfor
 
 . for s in 1 2 4 8
-.  for m in 1 2 3 4
+.  for m in 1 2 3 4 5
 .   for n in swp ldadd ldclr ldeor ldset
 LSE_NAMES+=			${n}_${s}_${m}
 CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}



CVS commit: src/external/gpl3/gcc/lib/libgcc

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:59:11 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
arm64 needs additional lse.S builds with GCC 10.4.0.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:51:08 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
revert the previous; atomicity.cc is also built into here.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.52 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.53
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.52	Fri Jul 22 21:28:32 2022
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Fri Jul 22 21:51:08 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.52 2022/07/22 21:28:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.53 2022/07/22 21:51:08 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -145,6 +145,7 @@ BUILDSYMLINKS+=	\
 	${GLIBCXX_SRCDIR}/${G_CMONEY_CC} monetary_members.cc \
 	${GLIBCXX_SRCDIR}/${G_CNUMERIC_CC} numeric_members.cc \
 	${GLIBCXX_SRCDIR}/${G_CTIME_CC} time_members.cc \
+	${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc \
 	${GLIBCXX_SRCDIR}/${G_CLOCALE_CC} c++locale.cc \
 	${GLIBCXX_SRCDIR}/${G_BASIC_FILE_CC} basic_file.cc \
 	${DIST}/libiberty/cp-demangle.c cp-demangle.c \



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:51:08 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
revert the previous; atomicity.cc is also built into here.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:28:32 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile

Log Message:
atomicity.cc has moved into libsupc++ for everyone.

this was a workaround we applied for sparc in PR#54660, and
now is used for all platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libsupc++/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.51 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.52
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.51	Fri Jul 22 07:09:21 2022
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Fri Jul 22 21:28:32 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.51 2022/07/22 07:09:21 mrg Exp $
+#	$NetBSD: Makefile,v 1.52 2022/07/22 21:28:32 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -145,7 +145,6 @@ BUILDSYMLINKS+=	\
 	${GLIBCXX_SRCDIR}/${G_CMONEY_CC} monetary_members.cc \
 	${GLIBCXX_SRCDIR}/${G_CNUMERIC_CC} numeric_members.cc \
 	${GLIBCXX_SRCDIR}/${G_CTIME_CC} time_members.cc \
-	${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc \
 	${GLIBCXX_SRCDIR}/${G_CLOCALE_CC} c++locale.cc \
 	${GLIBCXX_SRCDIR}/${G_BASIC_FILE_CC} basic_file.cc \
 	${DIST}/libiberty/cp-demangle.c cp-demangle.c \

Index: src/external/gpl3/gcc/lib/libsupc++/Makefile
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile:1.13 src/external/gpl3/gcc/lib/libsupc++/Makefile:1.14
--- src/external/gpl3/gcc/lib/libsupc++/Makefile:1.13	Tue Apr 21 05:23:41 2020
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile	Fri Jul 22 21:28:32 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2020/04/21 05:23:41 mrg Exp $
+#	$NetBSD: Makefile,v 1.14 2022/07/22 21:28:32 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -25,14 +25,9 @@ SHLIB_MINOR=	0
 SRCS=		${LIBSUPCXXSRCS} xmalloc.c
 CXXFLAGS+=	${G_SECTION_FLAGS}
 
-# XXX PR#54660
-.if ${MACHINE} == "sparc"
-SRCS+=		atomicity.cc
-DIST=		${GCCDIST}
 GLIBCXX_SRCDIR=	${DIST}/libstdc++-v3
 BUILDSYMLINKS+=	\
 	${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc
-.endif
 
 COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
 



CVS commit: src/external/gpl3/gcc/lib

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 21:28:32 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile

Log Message:
atomicity.cc has moved into libsupc++ for everyone.

this was a workaround we applied for sparc in PR#54660, and
now is used for all platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libsupc++/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2022-07-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul 22 07:09:25 UTC 2022

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/hppa: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/i386: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/ia64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68k: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/mipsn64el: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sparc: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64: defs.mk
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix missing components of c++17.

codecvt.cc was already present and handled for c++98 and c++11,
but cow-string-inst.cc, ostream-inst.cc, and string-inst.cc
were not handled for c++11 and c++17.

move all the handling of this into the Makefiles out of the
mknative-gcc output, and handle the new c++17 files.

fixes a problem reported by dholland.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/defs.mk
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64eb/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/defs.mk
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm/defs.mk
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/defs.mk
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/defs.mk
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/defs.mk
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/defs.mk
cvs rdiff -u -r1.16 -r1.17 \

CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 15:09:08 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64:
Makefile

Log Message:
fix cargo-cult


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/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/libstdc++-v3/include/bits/arch/riscv64/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile:1.1 src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile:1.2
--- src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile:1.1	Fri Sep 19 13:23:24 2014
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile	Sun Apr 25 11:09:08 2021
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.1 2014/09/19 17:23:24 matt Exp $
+#	$NetBSD: Makefile,v 1.2 2021/04/25 15:09:08 christos Exp $
 
 GCC_MACHINE_ARCH=riscv64
 .include "../Makefile.arch_bits"
 
-# mips64 files are in mips64e[lb] subdirs.
+# riscv64 files are in riscv64 subdirs.
 .PATH: ${.CURDIR}/../../../../arch/${MACHINE_ARCH}



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 15:09:08 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64:
Makefile

Log Message:
fix cargo-cult


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/riscv64/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 15:08:28 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch: Makefile

Log Message:
- include 
- use MACHINE_MIPS64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 15:08:28 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch: Makefile

Log Message:
- include 
- use MACHINE_MIPS64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/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/libstdc++-v3/include/bits/arch/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.5 src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.6
--- src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.5	Fri Feb  8 21:36:56 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile	Sun Apr 25 11:08:28 2021
@@ -1,6 +1,7 @@
-#	$NetBSD: Makefile,v 1.5 2019/02/09 02:36:56 mrg Exp $
+#	$NetBSD: Makefile,v 1.6 2021/04/25 15:08:28 christos Exp $
 
 # install multilib c++config.h files
+.include 
 
 .if ${MACHINE_ARCH} == "sparc64"
 SUBDIR=		sparc sparc64
@@ -12,7 +13,7 @@ SUBDIR=		i386 x86_64
 CXXCONFIGARGS=	x86_64 _LP64 i386
 .endif
 
-.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
+.if ${MACHINE_MIPS64}
 SUBDIR=		mips64 mips32 mipso32
 CXXCONFIGARGS=	mips64 _ABI64 mipso32 _ABIO32 mips32
 .endif



CVS commit: src/external/gpl3/gcc/lib/libgcc

2021-04-24 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Apr 24 06:34:53 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
Fix build with MKDEBUG=yes for aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.49 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.50
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.49	Sat Apr 17 22:01:02 2021
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Apr 24 06:34:52 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.49 2021/04/17 22:01:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.50 2021/04/24 06:34:52 rin Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
@@ -197,6 +197,11 @@ ${LSE_NAMES:=.o}: ${LSE_SRC} Makefile
 	${_MKTARGET_COMPILE}
 	${COMPILE.S} ${CPPFLAGS.${.TARGET:T:.o=}} -o ${.TARGET} ${LSE_SRC}
 
+${LSE_NAMES:=.go}: ${LSE_SRC} Makefile
+	${_MKTARGET_COMPILE}
+	${COMPILE.S} ${DEBUGFLAGS} ${CPPFLAGS.${.TARGET:T:.go=}} -o ${.TARGET} \
+		${LSE_SRC}
+
 # lse-init.c currently compiles to nothing for us
 G_LIB2ADD+=	${GNUHOSTDIST}/libgcc/config/aarch64/lse-init.c
 



CVS commit: src/external/gpl3/gcc/lib/libgcc

2021-04-24 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sat Apr 24 06:34:53 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
Fix build with MKDEBUG=yes for aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libgcc

2021-04-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Apr 17 10:54:47 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc
src/external/gpl3/gcc/lib/libgcc/libgcc: Makefile

Log Message:
add support for arm64 lse.S.

arm64 userland much happier now.  /usr/bin/gcc as gcc 10 on arm64
is fine, build is complete, though i did not test xsrc yet.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/external/gpl3/gcc/lib/libgcc/Makefile.inc
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libgcc

2021-04-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Apr 17 10:54:47 UTC 2021

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc
src/external/gpl3/gcc/lib/libgcc/libgcc: Makefile

Log Message:
add support for arm64 lse.S.

arm64 userland much happier now.  /usr/bin/gcc as gcc 10 on arm64
is fine, build is complete, though i did not test xsrc yet.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/external/gpl3/gcc/lib/libgcc/Makefile.inc
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libgcc/libgcc/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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.47 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.48
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.47	Mon Apr 12 00:05:55 2021
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Apr 17 10:54:46 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.47 2021/04/12 00:05:55 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.48 2021/04/17 10:54:46 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
@@ -30,9 +30,11 @@ CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_C
 .if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
 ${LIBGCC_MACHINE_ARCH} == "sh3el" || \
 ${LIBGCC_MACHINE_ARCH} == "sh3eb" || \
-${LIBGCC_MACHINE_ARCH} == "m68000"
+${LIBGCC_MACHINE_ARCH} == "m68000" || \
+${LIBGCC_MACHINE_ARCH} == "aarch64" || \
+${LIBGCC_MACHINE_ARCH} == "aarch64eb"
 _TRADITIONAL_CPP=
-COMPILE.S=	${CC} ${AFLAGS} ${CPPFLAGS} -c
+COMPILE.S=	${CC} ${AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} -c 
 .endif
 
 .if ${LIBGCC_MACHINE_ARCH} == "powerpc"
@@ -166,6 +168,40 @@ ${LIB1ASMFUNCS}: ${.CURDIR}/Makefile
 	printf '#define L${.PREFIX}\n#include <${G_LIB1ASMSRC}>\n' >${.TARGET}
 .endif
 
+.if ${LIB} == "gcc" && \
+(${LIBGCC_MACHINE_ARCH} == "aarch64" || \
+ ${LIBGCC_MACHINE_ARCH} == "aarch64be") # {
+# XXX lse.S objects are placed directly into "libgcc-objects" for GCC, and
+# are not pulled out by mknative-gcc easily.
+. for s in 1 2 4 8 16
+.  for m in 1 2 3 4
+.   for n in cas
+LSE_NAMES+=			${n}_${s}_${m}
+CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}
+.   endfor
+.  endfor
+. endfor
+
+. for s in 1 2 4 8
+.  for m in 1 2 3 4
+.   for n in swp ldadd ldclr ldeor ldset
+LSE_NAMES+=			${n}_${s}_${m}
+CPPFLAGS.${n}_${s}_${m}+=	-DL_${n} -DSIZE=${s} -DMODEL=${m}
+.   endfor
+.  endfor
+. endfor
+
+LSE_SRC=	${GNUHOSTDIST}/libgcc/config/aarch64/lse.S
+
+${LSE_NAMES:=.o}: ${LSE_SRC} Makefile
+	${_MKTARGET_COMPILE}
+	${COMPILE.S} ${CPPFLAGS.${.TARGET:T:.o=}} -o ${.TARGET} ${LSE_SRC}
+
+# lse-init.c currently compiles to nothing for us
+G_LIB2ADD+=	${GNUHOSTDIST}/libgcc/config/aarch64/lse-init.c
+
+.endif # } arm64
+
 # Use dynamic sources to arrange for the C file to be the first dependency
 # so ${.IMPSRC} will work.
 

Index: src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.29 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.30
--- src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.29	Mon Apr 12 00:05:55 2021
+++ src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile	Sat Apr 17 10:54:46 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.29 2021/04/12 00:05:55 mrg Exp $
+#	$NetBSD: Makefile,v 1.30 2021/04/17 10:54:46 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -32,7 +32,8 @@ LIB2ADD_EDITED=	${G_LIB2ADD:T:S/.asm/.S/
 SRCS+=		${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
 		${LIB2ADD_EDITED} \
 		${LIB2ADD_HACK:T:S/.asm/.S/} \
-		${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS}
+		${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS} \
+		${LSE_NAMES:=.o}
 .if ${MKPIC} == "no"
 .if empty(LIBGCC_MACHINE_ARCH:Mearm*)
 SRCS+=		${LIB2_EH} ${LIB2_EHASM}



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep 21 20:00:45 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix missing deps for cow-fs_dir* and cow-fs_ops*.

should fix build issues reported on current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.18 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.19
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.18	Wed Sep 16 21:24:30 2020
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Mon Sep 21 20:00:44 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.18 2020/09/16 21:24:30 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.19 2020/09/21 20:00:44 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -78,7 +78,7 @@ COPTS.${_f}+=	-std=gnu++1z
 COPTS.${_f}+=	-std=gnu++17 -fimplicit-templates
 .endfor
 
-.for _f in dir ops fs_dir fs_ops
+.for _f in dir ops fs_dir fs_ops cow-fs_dir cow-fs_ops
 ${_f}.o ${_f}.d ${_f}.pico ${_f}.po: bits/largefile-config.h
 .endfor
 



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep 21 20:00:45 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix missing deps for cow-fs_dir* and cow-fs_ops*.

should fix build issues reported on current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep 16 21:24:30 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix dependencies for bits/largefile-config.h.  the .cc files don't
depend on it, the outputs of those do.  should fix build issue
reported by otis@.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep 16 21:24:30 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix dependencies for bits/largefile-config.h.  the .cc files don't
depend on it, the outputs of those do.  should fix build issue
reported by otis@.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.17 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.18
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.17	Wed Sep  9 09:52:16 2020
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Wed Sep 16 21:24:30 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.17 2020/09/09 09:52:16 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.18 2020/09/16 21:24:30 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -78,7 +78,9 @@ COPTS.${_f}+=	-std=gnu++1z
 COPTS.${_f}+=	-std=gnu++17 -fimplicit-templates
 .endfor
 
-dir.cc ops.cc fs_dir.cc fs_ops.cc: bits/largefile-config.h
+.for _f in dir ops fs_dir fs_ops
+${_f}.o ${_f}.d ${_f}.pico ${_f}.po: bits/largefile-config.h
+.endfor
 
 bits/largefile-config.h:
 	mkdir -p bits



CVS commit: src/external/gpl3/gcc/lib

2020-09-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Sep 15 04:55:23 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib: Makefile

Log Message:
Do not build libtsan on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/lib/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2020-09-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Sep 15 04:55:23 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib: Makefile

Log Message:
Do not build libtsan on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/lib/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/Makefile
diff -u src/external/gpl3/gcc/lib/Makefile:1.19 src/external/gpl3/gcc/lib/Makefile:1.20
--- src/external/gpl3/gcc/lib/Makefile:1.19	Sun Sep 13 02:37:32 2020
+++ src/external/gpl3/gcc/lib/Makefile	Tue Sep 15 04:55:23 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2020/09/13 02:37:32 kamil Exp $
+#	$NetBSD: Makefile,v 1.20 2020/09/15 04:55:23 martin Exp $
 
 .include 
 
@@ -13,8 +13,10 @@ SUBDIR+= libsupc++ libstdc++-v3
 
 SUBDIR+= .WAIT libasan liblsan libubsan
 
-# TSan does not work with 32bit address space
-.if (!empty(MACHINE_ARCH:M*64*) || ${MACHINE_ARCH} == alpha)
+# TSan does not work with 32bit address space and has not been porter
+# to all architectures
+.if (!empty(MACHINE_ARCH:M*64*) || ${MACHINE_ARCH} == alpha) && \
+	${MACHINE_ARCH} != "sparc64"
 SUBDIR+= libtsan
 .endif
 .endif



CVS commit: src/external/gpl3/gcc/lib

2020-09-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Sep 14 15:01:58 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
Consistently, always link sanitizer runtime with libm and libpthread

This reflects the behavior from LLVM and avoids issues with dlsym(3) APIs.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/lib/libubsan/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/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.32 src/external/gpl3/gcc/lib/libasan/Makefile:1.33
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.32	Mon Sep  7 09:09:40 2020
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Mon Sep 14 15:01:57 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2020/09/07 09:09:40 mrg Exp $
+# $NetBSD: Makefile,v 1.33 2020/09/14 15:01:57 kamil Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -46,6 +46,7 @@ LIB=	asan
 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
+LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .if ${MACHINE_ARCH} == "vax"

Index: src/external/gpl3/gcc/lib/liblsan/Makefile
diff -u src/external/gpl3/gcc/lib/liblsan/Makefile:1.7 src/external/gpl3/gcc/lib/liblsan/Makefile:1.8
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.7	Fri May 15 14:29:53 2020
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Mon Sep 14 15:01:57 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2020/05/15 14:29:53 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2020/09/14 15:01:57 kamil Exp $
 
 .include 
 
@@ -23,7 +23,9 @@ COPTS.sanitizer_file.cc += -O1
 
 LIB=	lsan
 SRCS+=	${LSAN_SRCS}
+LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 
 CWARNFLAGS.clang+=	-Wno-error=unused-private-field
 

Index: src/external/gpl3/gcc/lib/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.14 src/external/gpl3/gcc/lib/libtsan/Makefile:1.15
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.14	Mon Sep 14 14:33:01 2020
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Mon Sep 14 15:01:58 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/09/14 14:33:01 kamil Exp $
+# $NetBSD: Makefile,v 1.15 2020/09/14 15:01:58 kamil Exp $
 
 UNSUPPORTED_COMPILER.clang= # defined
 NOSANITIZER=# defined
@@ -64,6 +64,7 @@ LIB=	tsan
 SRCS+=	${TSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
+LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 COPTS.tsan_interceptors.cc += -Wno-unused-function
 

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.17 src/external/gpl3/gcc/lib/libubsan/Makefile:1.18
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.17	Sat Sep  5 09:50:15 2020
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Mon Sep 14 15:01:58 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2020/09/05 09:50:15 mrg Exp $
+#	$NetBSD: Makefile,v 1.18 2020/09/14 15:01:58 kamil Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -32,7 +32,9 @@ COPTS.sanitizer_file.cc += -O1
 
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
+LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
 CPPFLAGS+=-DCAN_SANITIZE_UB=1
 
 .include 



CVS commit: src/external/gpl3/gcc/lib

2020-09-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Sep 14 15:01:58 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
Consistently, always link sanitizer runtime with libm and libpthread

This reflects the behavior from LLVM and avoids issues with dlsym(3) APIs.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Sep 14 14:33:01 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile
Removed Files:
src/external/gpl3/gcc/lib/libtsan: tsan_rtl_unimpl.cc

Log Message:
Avoid using dummy tsan_rtl_unimpl.cc

Instead of providing broken support, error during build to catch the
problem quickly.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.1 -r0 src/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc

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/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.13 src/external/gpl3/gcc/lib/libtsan/Makefile:1.14
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.13	Sun Sep 13 02:37:32 2020
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Mon Sep 14 14:33:01 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2020/09/13 02:37:32 kamil Exp $
+# $NetBSD: Makefile,v 1.14 2020/09/14 14:33:01 kamil Exp $
 
 UNSUPPORTED_COMPILER.clang= # defined
 NOSANITIZER=# defined
@@ -48,11 +48,16 @@ TSAN_SRCS= \
 	tsan_symbolize.cc \
 	tsan_sync.cc 
 
-# XXX ${MACHINE} won't match mips64 or ppc64
-.if exists(${SANITIZER}/tsan/tsan_rtl_${MACHINE}.S)
-TSAN_SRCS+= tsan_rtl_${MACHINE}.S
+.if ${MACHINE_ARCH} == "x86_64"
+TSAN_SRCS+= tsan_rtl_amd64.S
+.elif ${MACHINE_ARCH} == "aarch64"
+TSAN_SRCS+= tsan_rtl_aarch64.S
+.elif ${MACHINE_ARCH} == "mips64el"
+TSAN_SRCS+= tsan_rtl_mips64.S
+.elif ${MACHINE_ARCH} == "powerpc64"
+TSAN_SRCS+= tsan_rtl_ppc64.S
 .else
-TSAN_SRCS+= tsan_rtl_unimpl.cc
+.error Unsupported
 .endif
 
 LIB=	tsan



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-14 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Sep 14 14:33:01 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile
Removed Files:
src/external/gpl3/gcc/lib/libtsan: tsan_rtl_unimpl.cc

Log Message:
Avoid using dummy tsan_rtl_unimpl.cc

Instead of providing broken support, error during build to catch the
problem quickly.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.1 -r0 src/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc

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



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Sep 12 23:04:44 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile

Log Message:
Always link TSan runtime with librt and libm

With these changes, TSan/amd64 works.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/lib/libtsan/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/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.11 src/external/gpl3/gcc/lib/libtsan/Makefile:1.12
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.11	Sat Sep 12 22:24:22 2020
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Sat Sep 12 23:04:44 2020
@@ -1,4 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2020/09/12 22:24:22 kamil Exp $
+# $NetBSD: Makefile,v 1.12 2020/09/12 23:04:44 kamil Exp $
+
+UNSUPPORTED_COMPILER.clang= # defined
+NOSANITIZER=# defined
 
 .include 
 
@@ -53,6 +56,8 @@ TSAN_SRCS+= tsan_rtl_unimpl.cc
 
 LIB=	tsan
 SRCS+=	${TSAN_SRCS}
+LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 COPTS.tsan_interceptors.cc += -Wno-unused-function
 



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Sep 12 23:04:44 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile

Log Message:
Always link TSan runtime with librt and libm

With these changes, TSan/amd64 works.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/lib/libtsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Sep 12 22:24:22 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile

Log Message:
Ignore unused functions in tsan_interceptors.cc


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/lib/libtsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libtsan

2020-09-12 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Sep 12 22:24:22 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libtsan: Makefile

Log Message:
Ignore unused functions in tsan_interceptors.cc


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/lib/libtsan/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/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.10 src/external/gpl3/gcc/lib/libtsan/Makefile:1.11
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.10	Wed Oct  2 02:54:35 2019
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Sat Sep 12 22:24:22 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2019/10/02 02:54:35 mrg Exp $
+# $NetBSD: Makefile,v 1.11 2020/09/12 22:24:22 kamil Exp $
 
 .include 
 
@@ -54,5 +54,6 @@ TSAN_SRCS+= tsan_rtl_unimpl.cc
 LIB=	tsan
 SRCS+=	${TSAN_SRCS}
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
+COPTS.tsan_interceptors.cc += -Wno-unused-function
 
 .include 



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  9 09:52:16 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix path for largefile-config.h


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  9 09:52:16 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
fix path for largefile-config.h


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.16 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.17
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.16	Wed Sep  9 09:49:16 2020
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Wed Sep  9 09:52:16 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.16 2020/09/09 09:49:16 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.17 2020/09/09 09:52:16 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -78,7 +78,7 @@ COPTS.${_f}+=	-std=gnu++1z
 COPTS.${_f}+=	-std=gnu++17 -fimplicit-templates
 .endfor
 
-dir.cc ops.cc fs_dir.cc fs_ops.cc: largefile-config.h
+dir.cc ops.cc fs_dir.cc fs_ops.cc: bits/largefile-config.h
 
 bits/largefile-config.h:
 	mkdir -p bits



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  9 09:49:16 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
add build rules for G_CPP17_SOURCES sources, and fix their build.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-09-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  9 09:49:16 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
add build rules for G_CPP17_SOURCES sources, and fix their build.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.15 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.16
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.15	Fri Oct  4 08:51:33 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Wed Sep  9 09:49:16 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.15 2019/10/04 08:51:33 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.16 2020/09/09 09:49:16 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -15,7 +15,7 @@ LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARC
 # Make sure we get G_*_SOURCES, etc.*, for the .for loops
 .include "${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
 
-LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
+LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} ${G_CPP17_SOURCES}
 # XXX XXX dir.o doesn't have  stuff properly, leave it out for now
 #LIBSTDCXXSRCS+=	${G_FILESYSTEM_SOURCES}
 
@@ -73,3 +73,15 @@ STD_GNU1Z=	\
 .for _f in ${STD_GNU1Z}
 COPTS.${_f}+=	-std=gnu++1z
 .endfor
+
+.for _f in ${G_CPP17_SOURCES}
+COPTS.${_f}+=	-std=gnu++17 -fimplicit-templates
+.endfor
+
+dir.cc ops.cc fs_dir.cc fs_ops.cc: largefile-config.h
+
+bits/largefile-config.h:
+	mkdir -p bits
+	touch bits/largefile-config.h
+
+CLEANFILES+=	bits/largefile-config.h



CVS commit: src/external/gpl3/gcc/lib/libasan

2020-09-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep  7 09:09:40 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
asan_interceptors.cc needs -O1 for mipsel/mipseb.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/external/gpl3/gcc/lib/libasan/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/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.31 src/external/gpl3/gcc/lib/libasan/Makefile:1.32
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.31	Mon Oct 28 16:25:05 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Mon Sep  7 09:09:40 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2019/10/28 16:25:05 christos Exp $
+# $NetBSD: Makefile,v 1.32 2020/09/07 09:09:40 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -56,4 +56,8 @@ COPTS.ubsan_diag.cc += -O1
 COPTS.ubsan_init.cc += -O1
 .endif
 
+.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
+COPTS.asan_interceptors.cc += -O1
+.endif
+
 .include 



CVS commit: src/external/gpl3/gcc/lib/libasan

2020-09-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Sep  7 09:09:40 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
asan_interceptors.cc needs -O1 for mipsel/mipseb.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/external/gpl3/gcc/lib/libasan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2020-09-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Sep  5 13:36:49 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
work around various headers not being fully open without some
special #define being present (ie, define them.)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/lib/Makefile.sanitizer

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



CVS commit: src/external/gpl3/gcc/lib

2020-09-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Sep  5 13:36:49 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
work around various headers not being fully open without some
special #define being present (ie, define them.)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/lib/Makefile.sanitizer

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/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.11 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.12
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.11	Sat Sep  5 09:50:15 2020
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sat Sep  5 13:36:49 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.11 2020/09/05 09:50:15 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.12 2020/09/05 13:36:49 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -75,11 +75,17 @@ CSHLIBFLAGS+= -DPIC
 SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
 CPPFLAGS+=-I${SANITIZER}/include -I${SANITIZER}
 CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
+# XXX __lwp_getprivate_fast() is hidden normally.
+CPPFLAGS.sanitizer_linux_libcdep.cc+= -D__LIBPTHREAD_SOURCE__
+# XXX wants old lwp info and power ioctl, npf wants nv.h
+CPPFLAGS.sanitizer_platform_limits_netbsd.cc+= -D__LEGACY_PT_LWPINFO -D_KMEMUSER \
+	-I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
 CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 CPPFLAGS+=-D__STDC_LIMIT_MACROS -DSANITIZER_HAS_EXCEPTIONS=1
 CPPFLAGS+=-DSANITIZER_NEEDS_SEGV=1
 #CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
+
 LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread
 COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
 COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables



CVS commit: src/external/gpl3/gcc/lib/libgcc

2020-09-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Sep  5 11:40:56 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
endfor not endif


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libgcc

2020-09-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Sep  5 11:40:56 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
endfor not endif


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.45 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.46
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.45	Sat Sep  5 09:50:15 2020
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Sep  5 11:40:56 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.45 2020/09/05 09:50:15 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.46 2020/09/05 11:40:56 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
@@ -106,7 +106,7 @@ LIB2FUNCS=	${LIB2FUNCS_SHORT:=.c}
 _LIB2FUNCS=	${G_LIB2FUNCS_ST}
 .for _f in ${LIB2FUNCS_EXCLUDE}
 _LIB2FUNCS=	${_LIB2FUNCS:N${_f}}
-.endif
+.endfor
 LIB2FUNCS_ST=	${_LIB2FUNCS:=.c}
 LIB2DIVMOD=	${LIB2_DIVMOD_FUNCS:=.c}
 .if ${HAVE_LIBGCC_EH} == "no"



CVS commit: src/external/gpl3/gcc/lib/libgomp

2020-05-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 15 14:29:29 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
Don't allow building with clang, uses GCC-specific attributes.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/gpl3/gcc/lib/libgomp/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libgomp

2020-05-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 15 14:29:29 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
Don't allow building with clang, uses GCC-specific attributes.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/gpl3/gcc/lib/libgomp/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.24 src/external/gpl3/gcc/lib/libgomp/Makefile:1.25
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.24	Sat Feb  9 00:48:59 2019
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Fri May 15 14:29:29 2020
@@ -1,10 +1,12 @@
-#	$NetBSD: Makefile,v 1.24 2019/02/09 00:48:59 mrg Exp $
+#	$NetBSD: Makefile,v 1.25 2020/05/15 14:29:29 joerg Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
 # XXX
 NOLINT=	# defined
 
+UNSUPPORTED_COMPILER.clang=	# defined
+
 .include 
 
 .if !defined(NO_LIBGOMP)	# {
@@ -29,8 +31,6 @@ CPPFLAGS+= \
 	-I${ARCHDIR}
 CFLAGS+=-pthread
 
-CWARNFLAGS.clang+=	-Wno-conversion
-
 SHLIB_MAJOR=	2
 SHLIB_MINOR=	0
 



CVS commit: src/external/gpl3/gcc/lib/liblsan

2020-05-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 15 14:29:53 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/liblsan: Makefile

Log Message:
Ignore unused private fields when building with clang


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/liblsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/liblsan

2020-05-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 15 14:29:53 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/liblsan: Makefile

Log Message:
Ignore unused private fields when building with clang


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/liblsan/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/liblsan/Makefile
diff -u src/external/gpl3/gcc/lib/liblsan/Makefile:1.6 src/external/gpl3/gcc/lib/liblsan/Makefile:1.7
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.6	Mon Oct 28 16:25:05 2019
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Fri May 15 14:29:53 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2019/10/28 16:25:05 christos Exp $
+# $NetBSD: Makefile,v 1.7 2020/05/15 14:29:53 joerg Exp $
 
 .include 
 
@@ -25,4 +25,6 @@ LIB=	lsan
 SRCS+=	${LSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
+CWARNFLAGS.clang+=	-Wno-error=unused-private-field
+
 .include 



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-04-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 21 05:23:42 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile

Log Message:
pull in atomicity.h (atomicity.cc) on sparc.  3 of the objects
use these interfaces and this avoids link errors

fixes PR#54660.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/lib/libsupc++/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2020-04-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 21 05:23:42 UTC 2020

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile

Log Message:
pull in atomicity.h (atomicity.cc) on sparc.  3 of the objects
use these interfaces and this avoids link errors

fixes PR#54660.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/lib/libsupc++/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/libsupc++/Makefile
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile:1.12 src/external/gpl3/gcc/lib/libsupc++/Makefile:1.13
--- src/external/gpl3/gcc/lib/libsupc++/Makefile:1.12	Sat Jan 19 17:11:02 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile	Tue Apr 21 05:23:41 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2019/01/19 17:11:02 mrg Exp $
+#	$NetBSD: Makefile,v 1.13 2020/04/21 05:23:41 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -25,6 +25,15 @@ SHLIB_MINOR=	0
 SRCS=		${LIBSUPCXXSRCS} xmalloc.c
 CXXFLAGS+=	${G_SECTION_FLAGS}
 
+# XXX PR#54660
+.if ${MACHINE} == "sparc"
+SRCS+=		atomicity.cc
+DIST=		${GCCDIST}
+GLIBCXX_SRCDIR=	${DIST}/libstdc++-v3
+BUILDSYMLINKS+=	\
+	${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc
+.endif
+
 COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
 
 .include "../Makefile.gthr"



CVS commit: src/external/gpl3/gcc/lib

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct 28 16:25:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
vaxinate sanitizer_file.cc against the optimizer virus.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libubsan/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/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.30 src/external/gpl3/gcc/lib/libasan/Makefile:1.31
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.30	Sun Oct 13 17:18:20 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2019/10/13 21:18:20 mrg Exp $
+# $NetBSD: Makefile,v 1.31 2019/10/28 16:25:05 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -51,6 +51,7 @@ CPPFLAGS+=-DCAN_SANITIZE_UB=0
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator.cc += -O1
 COPTS.asan_report.cc += -O1
+COPTS.sanitizer_file.cc += -O1
 COPTS.ubsan_diag.cc += -O1
 COPTS.ubsan_init.cc += -O1
 .endif

Index: src/external/gpl3/gcc/lib/liblsan/Makefile
diff -u src/external/gpl3/gcc/lib/liblsan/Makefile:1.5 src/external/gpl3/gcc/lib/liblsan/Makefile:1.6
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.5	Tue Oct  1 22:54:34 2019
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2019/10/02 02:54:34 mrg Exp $
+# $NetBSD: Makefile,v 1.6 2019/10/28 16:25:05 christos Exp $
 
 .include 
 
@@ -18,6 +18,7 @@ LSAN_SRCS+= \
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.lsan_allocator.cc += -O1
+COPTS.sanitizer_file.cc += -O1
 .endif
 
 LIB=	lsan

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.15 src/external/gpl3/gcc/lib/libubsan/Makefile:1.16
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.15	Sat Oct  5 20:15:22 2019
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2019/10/06 00:15:22 mrg Exp $
+#	$NetBSD: Makefile,v 1.16 2019/10/28 16:25:05 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -25,6 +25,10 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.sanitizer_file.cc += -O1
+.endif
+
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt



CVS commit: src/external/gpl3/gcc/lib

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct 28 16:25:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
vaxinate sanitizer_file.cc against the optimizer virus.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 21:18:20 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
use sanitizer_platform_limits_netbsd.cc.
link asan with libm so it can find signgam.

basic libasan works now.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libasan/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/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.9 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.10
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.9	Wed Oct  2 06:51:59 2019
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sun Oct 13 21:18:20 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.9 2019/10/02 06:51:59 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.10 2019/10/13 21:18:20 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -31,7 +31,7 @@ SANITIZER_SRCS+= \
 	sanitizer_mac.cc \
 	sanitizer_persistent_allocator.cc \
 	sanitizer_platform_limits_linux.cc \
-	sanitizer_platform_limits_posix.cc \
+	sanitizer_platform_limits_netbsd.cc \
 	sanitizer_posix.cc \
 	sanitizer_posix_libcdep.cc \
 	sanitizer_printf.cc \

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.29 src/external/gpl3/gcc/lib/libasan/Makefile:1.30
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.29	Wed Oct  2 02:54:34 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Sun Oct 13 21:18:20 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2019/10/02 02:54:34 mrg Exp $
+# $NetBSD: Makefile,v 1.30 2019/10/13 21:18:20 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -45,6 +45,7 @@ ASAN_SRCS= \
 LIB=	asan
 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .if ${MACHINE_ARCH} == "vax"



CVS commit: src/external/gpl3/gcc/lib

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 21:18:20 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
use sanitizer_platform_limits_netbsd.cc.
link asan with libm so it can find signgam.

basic libasan works now.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libasan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-10-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct  6 00:15:22 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
remove ubsan_handlers_cxx.cc from sources.  shouldn't be used with gcc.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-10-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct  6 00:15:22 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
remove ubsan_handlers_cxx.cc from sources.  shouldn't be used with gcc.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libubsan/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/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.14 src/external/gpl3/gcc/lib/libubsan/Makefile:1.15
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.14	Fri Oct  4 08:51:33 2019
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Sun Oct  6 00:15:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2019/10/04 08:51:33 mrg Exp $
+#	$NetBSD: Makefile,v 1.15 2019/10/06 00:15:22 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -15,7 +15,6 @@ UBSAN_SRCS= \
 	ubsan_diag.cc \
 	ubsan_flags.cc \
 	ubsan_handlers.cc \
-	ubsan_handlers_cxx.cc \
 	ubsan_init.cc \
 	ubsan_type_hash.cc \
 	ubsan_type_hash_itanium.cc \
@@ -26,8 +25,6 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor
 
-COPTS.ubsan_handlers_cxx.cc+= -Wno-error=maybe-uninitialized
-
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-07-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jul 30 20:19:18 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
Arrange so that the Makefile works for both the generic and the dragonfly
locale code.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.47 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.48
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.47	Tue Apr 23 16:55:53 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Tue Jul 30 16:19:18 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.47 2019/04/23 20:55:53 christos Exp $
+#	$NetBSD: Makefile,v 1.48 2019/07/30 20:19:18 christos Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -66,6 +66,12 @@ CXXFLAGS+=	-fno-implicit-templates
 CPPFLAGS+=	-I${DIST}/libstdc++-v3/include
 CPPFLAGS+=	-I${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}
 CPPFLAGS+=	-D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK
+.if ${G_CLOCALE_CC:M*dragonfly*} != ""
+CPPFLAGS+=	-I${CONF}/locale/dragonfly
+LOCALETYPE=	dragonfly
+.else
+LOCALETYPE=	generic
+.endif
 
 # affects profiling; can't switch it off just for profiling easily.
 #CXXFLAGS+=	${G_SECTION_FLAGS}
@@ -92,6 +98,7 @@ COPTS.snprintf_lite.cc += -Wno-stack-pro
 COPTS.cxx11-wlocale-inst.cc +=-Wno-stack-protector
 COPTS.cxx11-locale-inst.cc +=-Wno-stack-protector
 COPTS.cxx11-wlocale-inst.cc +=-Wno-stack-protector
+COPTS.codecvt_members.cc +=-Wno-stack-protector
 COPTS.compatibility-thread-c++0x.cc += -Wno-deprecated-declarations
 COPTS.concept-inst.cc += -fimplicit-templates
 COPTS.collate_members_cow.cc += -fimplicit-templates
@@ -186,7 +193,7 @@ COPTS.${f}.cc+= -fimplicit-templates ${G
 	${DIST}/libstdc++-v3/src/filesystem \
 	${DIST}/libstdc++-v3/libsupc++ \
 	${DIST}/libstdc++-v3/config/os/bsd/netbsd \
-	${CONF}/locale/generic \
+	${CONF}/locale/${LOCALETYPE} \
 	${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}
 
 ${OBJS}: ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-07-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jul 30 20:19:18 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
Arrange so that the Makefile works for both the generic and the dragonfly
locale code.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-05-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May 11 02:39:32 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
remove the ppc64 long-double-128; the default is 64 now.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64

2019-04-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 23 22:22:22 UTC 2019

Added Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: symver-config.h

Log Message:
add missing symver-config.h


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64

2019-04-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 23 22:22:22 UTC 2019

Added Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: symver-config.h

Log Message:
add missing symver-config.h


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h

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

Added files:

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h
diff -u /dev/null src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h:1.1
--- /dev/null	Tue Apr 23 22:22:22 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h	Tue Apr 23 22:22:22 2019
@@ -0,0 +1,1319 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
+
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to 1 if you have the `acosf' function. */
+#define HAVE_ACOSF 1
+
+/* Define to 1 if you have the `acosl' function. */
+#define HAVE_ACOSL 1
+
+/* Define to 1 if you have the `aligned_alloc' function. */
+#define HAVE_ALIGNED_ALLOC 1
+
+/* Define to 1 if you have the `asinf' function. */
+#define HAVE_ASINF 1
+
+/* Define to 1 if you have the `asinl' function. */
+#define HAVE_ASINL 1
+
+/* Define to 1 if the target assembler supports .symver directive. */
+#define HAVE_AS_SYMVER_DIRECTIVE 1
+
+/* Define to 1 if you have the `atan2f' function. */
+#define HAVE_ATAN2F 1
+
+/* Define to 1 if you have the `atan2l' function. */
+#define HAVE_ATAN2L 1
+
+/* Define to 1 if you have the `atanf' function. */
+#define HAVE_ATANF 1
+
+/* Define to 1 if you have the `atanl' function. */
+#define HAVE_ATANL 1
+
+/* Define to 1 if you have the `at_quick_exit' function. */
+#define HAVE_AT_QUICK_EXIT 1
+
+/* Define to 1 if the target assembler supports thread-local storage. */
+/* #undef HAVE_CC_TLS */
+
+/* Define to 1 if you have the `ceilf' function. */
+#define HAVE_CEILF 1
+
+/* Define to 1 if you have the `ceill' function. */
+#define HAVE_CEILL 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_COMPLEX_H 1
+
+/* Define to 1 if you have the `cosf' function. */
+#define HAVE_COSF 1
+
+/* Define to 1 if you have the `coshf' function. */
+#define HAVE_COSHF 1
+
+/* Define to 1 if you have the `coshl' function. */
+#define HAVE_COSHL 1
+
+/* Define to 1 if you have the `cosl' function. */
+#define HAVE_COSL 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_DIRENT_H 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define if EBADMSG exists. */
+#define HAVE_EBADMSG 1
+
+/* Define if ECANCELED exists. */
+#define HAVE_ECANCELED 1
+
+/* Define if ECHILD exists. */
+#define HAVE_ECHILD 1
+
+/* Define if EIDRM exists. */
+#define HAVE_EIDRM 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_ENDIAN_H 1
+
+/* Define if ENODATA exists. */
+#define HAVE_ENODATA 1
+
+/* Define if ENOLINK exists. */
+#define HAVE_ENOLINK 1
+
+/* Define if ENOSPC exists. */
+#define HAVE_ENOSPC 1
+
+/* Define if ENOSR exists. */
+#define HAVE_ENOSR 1
+
+/* Define if ENOSTR exists. */
+#define HAVE_ENOSTR 1
+
+/* Define if ENOTRECOVERABLE exists. */
+/* #undef HAVE_ENOTRECOVERABLE */
+
+/* Define if ENOTSUP exists. */
+#define HAVE_ENOTSUP 1
+
+/* Define if EOVERFLOW exists. */
+#define HAVE_EOVERFLOW 1
+
+/* Define if EOWNERDEAD exists. */
+/* #undef HAVE_EOWNERDEAD */
+
+/* Define if EPERM exists. */
+#define HAVE_EPERM 1
+
+/* Define if EPROTO exists. */
+#define HAVE_EPROTO 1
+
+/* Define if ETIME exists. */
+#define HAVE_ETIME 1
+
+/* Define if ETIMEDOUT exists. */
+#define HAVE_ETIMEDOUT 1
+
+/* Define if ETXTBSY exists. */
+#define HAVE_ETXTBSY 1
+
+/* Define if EWOULDBLOCK exists. */
+#define HAVE_EWOULDBLOCK 1
+
+/* Define to 1 if GCC 4.6 supported std::exception_ptr for the target */
+#define HAVE_EXCEPTION_PTR_SINCE_GCC46 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_EXECINFO_H 1
+
+/* Define to 1 if you have the `expf' function. */
+#define HAVE_EXPF 1
+
+/* Define to 1 if you have the `expl' function. */
+#define HAVE_EXPL 1
+
+/* Define to 1 if you have the `fabsf' function. */
+#define HAVE_FABSF 1
+
+/* Define to 1 if you have the `fabsl' function. */
+#define HAVE_FABSL 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the  header file. */
+#define HAVE_FENV_H 1
+
+/* Define to 1 if you have the `finite' function. */
+#define HAVE_FINITE 1
+
+/* Define to 1 if you have the `finitef' function. */
+#define HAVE_FINITEF 1
+
+/* Define to 1 if you have the `finitel' function. */
+/* #undef HAVE_FINITEL */
+
+/* Define to 1 

CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 08:08:18 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix -I paths for powerpc*.  convert amd64 specific hack.

we've been building dp-bit.c and fp-bit.c backwards, but as they
use the same input source, they just had opposite objects and
the right total was provided.  oops.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.41 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.42
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.41	Wed Apr  3 02:13:56 2019
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Tue Apr 16 08:08:18 2019
@@ -1,6 +1,7 @@
-#	$NetBSD: Makefile.inc,v 1.41 2019/04/03 02:13:56 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.42 2019/04/16 08:08:18 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
+GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
 
 .if ${MKGCC} != "no"
 .if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
@@ -22,11 +23,7 @@ CPPFLAGS+=	-I${GCCARCH} ${GCPPFLAGS:M-D*
 CPPFLAGS+=	${GCPPFLAGS:M-m*} ${GCPPFLAGS:M-f*}
 CPPFLAGS+=	${G_EXTRA_HEADERS:M/*:H:u:S/^/-I/g}
 CPPFLAGS+=	-I${DIST}/libgcc -I${DIST}/libgcc/config
-.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
-CPPFLAGS+=	-I${DIST}/libgcc/config/i386
-.else
-CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
-.endif
+CPPFLAGS+=	-I${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}
 CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
 CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
 
@@ -120,7 +117,7 @@ LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}
 # from the list of files we create.
 .if !empty(G_LIB1ASMFUNCS)
 . for f in ${G_LIB1ASMFUNCS:=.S}
-.  if !exists(${DIST}/libgcc/config/${MACHINE_CPU}/${f})
+.  if !exists(${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}/${f})
 LIB1ASMFUNCS+=	${f}
 .  endif
 . endfor
@@ -184,16 +181,17 @@ ${G_LIB2_DIVMOD_FUNCS:=.pico}: $(.PREFIX
 	${_MKTARGET_COMPILE}
 	${COMPILE.c} ${CPICFLAGS} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
 
+CPPFLAGS.fp-bit.c+=	-DFLOAT=1
 dp-bit.c: ${.CURDIR}/Makefile
 	${_MKTARGET_CREATE}
-	printf '#define FLOAT\n#include \n' >${.TARGET}
+	printf '#include \n' >${.TARGET}
 
 #
 # Common rules.
 #
 
 .PATH: ${DIST}/gcc ${DIST}/gcc/cp ${DIST}/gcc/cp/inc ${DIST}/gcc/config \
-	${DIST}/libgcc/config ${DIST}/libgcc/config/${MACHINE_CPU} \
+	${DIST}/libgcc/config ${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR} \
 	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u} ${GCCARCHLIBGCC}
 
 .include "../Makefile.tconfigh"



CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 08:08:18 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix -I paths for powerpc*.  convert amd64 specific hack.

we've been building dp-bit.c and fp-bit.c backwards, but as they
use the same input source, they just had opposite objects and
the right total was provided.  oops.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:51:23 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: c++config.h
defs.mk
Added Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: symver-config.h

Log Message:
more fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/symver-config.h

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/libstdc++-v3/arch/riscv64/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h:1.5 src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h:1.6
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h:1.5	Tue Jul 11 15:21:34 2017
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h	Mon Apr 15 14:51:23 2019
@@ -1,10 +1,10 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 // Predefined symbols and macros -*- C++ -*-
 
-// Copyright (C) 1997-2013 Free Software Foundation, Inc.
+// Copyright (C) 1997-2017 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -34,8 +34,11 @@
 #ifndef _GLIBCXX_CXX_CONFIG_H
 #define _GLIBCXX_CXX_CONFIG_H 1
 
-// The current version of the C++ library in compressed ISO date format.
-#define __GLIBCXX__ 20141219
+// The major release number for the GCC release the C++ library belongs to.
+#define _GLIBCXX_RELEASE 7
+
+// The datestamp of the C++ library in compressed ISO date format.
+#define __GLIBCXX__ 20181206
 
 // Macros for various attributes.
 //   _GLIBCXX_PURE
@@ -107,14 +110,40 @@
 # endif
 #endif
 
+#ifndef _GLIBCXX14_CONSTEXPR
+# if __cplusplus >= 201402L
+#  define _GLIBCXX14_CONSTEXPR constexpr
+# else
+#  define _GLIBCXX14_CONSTEXPR
+# endif
+#endif
+
+#ifndef _GLIBCXX17_CONSTEXPR
+# if __cplusplus > 201402L
+#  define _GLIBCXX17_CONSTEXPR constexpr
+# else
+#  define _GLIBCXX17_CONSTEXPR
+# endif
+#endif
+
+#ifndef _GLIBCXX17_INLINE
+# if __cplusplus > 201402L
+#  define _GLIBCXX17_INLINE inline
+# else
+#  define _GLIBCXX17_INLINE
+# endif
+#endif
+
 // Macro for noexcept, to support in mixed 03/0x mode.
 #ifndef _GLIBCXX_NOEXCEPT
 # if __cplusplus >= 201103L
 #  define _GLIBCXX_NOEXCEPT noexcept
+#  define _GLIBCXX_NOEXCEPT_IF(_COND) noexcept(_COND)
 #  define _GLIBCXX_USE_NOEXCEPT noexcept
 #  define _GLIBCXX_THROW(_EXC)
 # else
 #  define _GLIBCXX_NOEXCEPT
+#  define _GLIBCXX_NOEXCEPT_IF(_COND)
 #  define _GLIBCXX_USE_NOEXCEPT throw()
 #  define _GLIBCXX_THROW(_EXC) throw(_EXC)
 # endif
@@ -125,14 +154,22 @@
 #endif
 
 #ifndef _GLIBCXX_THROW_OR_ABORT
-# if __EXCEPTIONS
+# if __cpp_exceptions
 #  define _GLIBCXX_THROW_OR_ABORT(_EXC) (throw (_EXC))
 # else
 #  define _GLIBCXX_THROW_OR_ABORT(_EXC) (__builtin_abort())
 # endif
 #endif
 
-// Macro for extern template, ie controling template linkage via use
+#if __cpp_noexcept_function_type
+#define _GLIBCXX_NOEXCEPT_PARM , bool _NE
+#define _GLIBCXX_NOEXCEPT_QUAL noexcept (_NE)
+#else
+#define _GLIBCXX_NOEXCEPT_PARM
+#define _GLIBCXX_NOEXCEPT_QUAL
+#endif
+
+// Macro for extern template, ie controlling template linkage via use
 // of extern keyword on template declaration. As documented in the g++
 // manual, it inhibits all implicit instantiations and is used
 // throughout the library to avoid multiple weak definitions for
@@ -154,7 +191,9 @@
 namespace __profile { }
 namespace __cxx1998 { }
 
-namespace __detail { }
+namespace __detail {
+  namespace __variant { }// C++17
+}
 
 namespace rel_ops { }
 
@@ -169,10 +208,16 @@
 
 namespace decimal { }
 
-namespace chrono { }
-namespace placeholders { }
-namespace regex_constants { }
-namespace this_thread { }
+namespace chrono { }// C++11
+namespace placeholders { }// C++11
+namespace regex_constants { }			// C++11
+namespace this_thread { }// C++11
+inline namespace literals {// C++14
+  inline namespace chrono_literals { }		// C++14
+  inline namespace complex_literals { }		// C++14
+  inline namespace string_literals { }		// C++14
+  inline namespace string_view_literals { }		// C++17
+}
   }
 
   namespace abi { }
@@ -195,6 +240,37 @@ 

CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:51:23 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: c++config.h
defs.mk
Added Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: symver-config.h

Log Message:
more fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/symver-config.h

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



CVS commit: src/external/gpl3/gcc/lib/libgomp/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:02:58 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp/arch/riscv64: config.h libgomp.spec
libgomp_f.h omp.h

Log Message:
Fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/libgomp.spec \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/libgomp_f.h \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/omp.h

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



CVS commit: src/external/gpl3/gcc/lib/libgomp/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:02:58 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp/arch/riscv64: config.h libgomp.spec
libgomp_f.h omp.h

Log Message:
Fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/libgomp.spec \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/libgomp_f.h \
src/external/gpl3/gcc/lib/libgomp/arch/riscv64/omp.h

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/arch/riscv64/config.h
diff -u src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h:1.1 src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h:1.2
--- src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h:1.1	Fri Sep 19 17:23:24 2014
+++ src/external/gpl3/gcc/lib/libgomp/arch/riscv64/config.h	Mon Apr 15 14:02:57 2019
@@ -1,6 +1,6 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.100 2019/02/09 03:57:00 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* config.h.  Generated from config.h.in by configure.  */
 /* config.h.in.  Generated from configure.ac by autoheader.  */
@@ -29,18 +29,39 @@
 /* Define to 1 if you have the  header file. */
 #define HAVE_DLFCN_H 1
 
+/* Define to 1 if you have the `getegid' function. */
+#define HAVE_GETEGID 1
+
+/* Define to 1 if you have the `geteuid' function. */
+#define HAVE_GETEUID 1
+
+/* Define to 1 if you have the `getgid' function. */
+#define HAVE_GETGID 1
+
 /* Define to 1 if you have the `getloadavg' function. */
 #define HAVE_GETLOADAVG 1
 
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
 /* Define to 1 if you have the  header file. */
 #define HAVE_INTTYPES_H 1
 
+/* Define to 1 if you have the `dl' library (-ldl). */
+/* #undef HAVE_LIBDL */
+
 /* Define to 1 if you have the  header file. */
 #define HAVE_MEMORY_H 1
 
 /* Define if pthread_{,attr_}{g,s}etaffinity_np is supported. */
 /* #undef HAVE_PTHREAD_AFFINITY_NP */
 
+/* Define to 1 if you have the  header file. */
+#define HAVE_PTHREAD_H 1
+
+/* Define to 1 if you have the `secure_getenv' function. */
+/* #undef HAVE_SECURE_GETENV */
+
 /* Define to 1 if you have the  header file. */
 #define HAVE_SEMAPHORE_H 1
 
@@ -59,9 +80,12 @@
 /* Define to 1 if you have the `strtoull' function. */
 #define HAVE_STRTOULL 1
 
+/* Define to 1 if the system has the type `struct _Mutex_Control'. */
+/* #undef HAVE_STRUCT__MUTEX_CONTROL */
+
 /* Define to 1 if the target runtime linker supports binding the same symbol
to different versions. */
-/* #undef HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT */
+#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1
 
 /* Define to 1 if the target supports __sync_*_compare_and_swap */
 #define HAVE_SYNC_BUILTINS 1
@@ -72,6 +96,9 @@
 /* Define to 1 if you have the  header file. */
 #define HAVE_SYS_STAT_H 1
 
+/* Define to 1 if you have the  header file. */
+#define HAVE_SYS_SYSCTL_H 1
+
 /* Define to 1 if you have the  header file. */
 #define HAVE_SYS_TIME_H 1
 
@@ -84,13 +111,28 @@
 /* Define to 1 if you have the  header file. */
 #define HAVE_UNISTD_H 1
 
+/* Define to 1 if you have the `__secure_getenv' function. */
+/* #undef HAVE___SECURE_GETENV */
+
+/* Define path to HSA runtime. */
+#define HSA_RUNTIME_LIB ""
+
 /* Define to 1 if GNU symbol versioning is used for libgomp. */
-/* #undef LIBGOMP_GNU_SYMBOL_VERSIONING */
+#define LIBGOMP_GNU_SYMBOL_VERSIONING 1
+
+/* Define to 1 if building libgomp for an accelerator-only target. */
+/* #undef LIBGOMP_OFFLOADED_ONLY */
+
+/* Define to 1 if libgomp should use POSIX threads. */
+#define LIBGOMP_USE_PTHREADS 1
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
 #define LT_OBJDIR ".libs/"
 
+/* Define to offload targets, separated by commas. */
+#define OFFLOAD_TARGETS ""
+
 /* Name of package */
 #define PACKAGE "libgomp"
 
@@ -98,10 +140,10 @@
 #define PACKAGE_BUGREPORT ""
 
 /* Define to the full name of this package. */
-#define PACKAGE_NAME "GNU OpenMP Runtime Library"
+#define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
+#define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 1.0"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libgomp"
@@ -112,6 +154,19 @@
 /* Define to the version of this package. */
 #define PACKAGE_VERSION "1.0"
 
+/* Define to 1 if the HSA 

CVS commit: src/external/gpl3/gcc/lib/libgcc/arch/riscv64

2019-04-13 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Apr 13 15:54:07 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: defs.mk

Log Message:
Fake mknative. enough to build libc, with other changes pending


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk

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



CVS commit: src/external/gpl3/gcc/lib/libgcc/arch/riscv64

2019-04-13 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Apr 13 15:54:07 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: defs.mk

Log Message:
Fake mknative. enough to build libc, with other changes pending


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk

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/libgcc/arch/riscv64/defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk:1.3 src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk:1.4
--- src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk:1.3	Sun Feb 10 07:57:22 2019
+++ src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk	Sat Apr 13 15:54:07 2019
@@ -3,8 +3,8 @@
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
-G_INTERNAL_CFLAGS=-g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include  -DHAVE_CC_TLS 
-G_LIB2ADD= enable-execute-stack.c
+G_INTERNAL_CFLAGS=-g -O2 -O2  -I${GNUHOSTDIST}/libgcc/../gcc/config/riscv -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include  -DHAVE_CC_TLS 
+G_LIB2ADD= ${GNUHOSTDIST}/libgcc/soft-fp/addtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/divtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/eqtf2.c ${GNUHOSTDIST}/libgcc/soft-fp/getf2.c ${GNUHOSTDIST}/libgcc/soft-fp/letf2.c ${GNUHOSTDIST}/libgcc/soft-fp/multf3.c ${GNUHOSTDIST}/libgcc/soft-fp/negtf2.c ${GNUHOSTDIST}/libgcc/soft-fp/subtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/unordtf2.c ${GNUHOSTDIST}/libgcc/soft-fp/fixtfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunstfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatsitf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatunsitf.c ${GNUHOSTDIST}/libgcc/soft-fp/fixtfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunstfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatditf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatunditf.c ${GNUHOSTDIST}/libgcc/soft-fp/extendsftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/extenddftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfdf2.c enable-execute-stack.c
 G_LIB2ADDEH=${GNUHOSTDIST}/libgcc/unwind-dw2.c ${GNUHOSTDIST}/libgcc/unwind-dw2-fde-dip.c ${GNUHOSTDIST}/libgcc/unwind-sjlj.c ${GNUHOSTDIST}/libgcc/unwind-c.c ${GNUHOSTDIST}/libgcc/emutls.c
 G_LIB2ADD_ST=
 G_LIB1ASMFUNCS=
@@ -12,7 +12,7 @@ G_LIB1ASMSRC=
 G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _divmoddi4 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp
 G_LIB2FUNCS_EXTRA=
-G_LIBGCC2_CFLAGS=-O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector 
+G_LIBGCC2_CFLAGS=-O2 -I${GNUHOSTDIST}/libgcc/config/riscv  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector 
 G_SHLIB_MKMAP=${GNUHOSTDIST}/libgcc/mkmap-symver.awk
 G_SHLIB_MKMAP_OPTS=
 G_SHLIB_MAPFILES=libgcc-std.ver



CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-04-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Apr  3 02:13:56 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix error in previous


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.40 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.41
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.40	Tue Apr  2 21:29:46 2019
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Wed Apr  3 02:13:56 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.40 2019/04/02 21:29:46 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.41 2019/04/03 02:13:56 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -76,7 +76,7 @@ EXTRA_FUNC_SIZES=	sf df xf
 
 .if ${LIBGCC_MACHINE_ARCH} != "x86_64" && \
 ${LIBGCC_MACHINE_ARCH} != "i386" && \
-${LIBGCC_MACHINE_ARCH} != "ia64" &&
+${LIBGCC_MACHINE_ARCH} != "ia64"
 EXTRA_FUNC_SIZES+=	tf
 .endif
 



CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-04-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Apr  3 02:13:56 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix error in previous


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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



CVS commit: src/external/gpl3/gcc/lib/libgcc/arch/riscv64

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 09:50:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: gthr-defs.mk

Log Message:
basic mknative bootstrap-libgcc for riscv64


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk

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



CVS commit: src/external/gpl3/gcc/lib/libgcc/arch/riscv64

2019-02-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 09:50:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: gthr-defs.mk

Log Message:
basic mknative bootstrap-libgcc for riscv64


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk

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/libgcc/arch/riscv64/gthr-defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk:1.2 src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk:1.3
--- src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk:1.2	Wed Feb 27 08:22:43 2019
+++ src/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk	Thu Feb 28 09:50:02 2019
@@ -1,9 +1,9 @@
 # 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-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_enable_execute_stack=enable-execute-stack-mprotect.c
 G_unwind_header=unwind-generic.h
 G_md_unwind_header=no-unwind.h
-G_sfp_machine_header=no-sfp-machine.h
+G_sfp_machine_header=riscv/sfp-machine.h
 G_thread_header=gthr-posix.h



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2019-02-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 01:11:04 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
rework some commented code so it is easier to enable.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.12 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.13
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.12	Fri Feb  1 10:37:13 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Thu Feb 28 01:11:04 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.12 2019/02/01 10:37:13 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.13 2019/02/28 01:11:04 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -15,9 +15,10 @@ LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARC
 # Make sure we get G_*_SOURCES, etc.*, for the .for loops
 .include "${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
 
-LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} ${G_FILESYSTEM_SOURCES}
-# XXX XXX dir.o doesn't have  stuff properly, leave it out for now?
 LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
+# XXX XXX dir.o doesn't have  stuff properly, leave it out for now
+#LIBSTDCXXSRCS+=	${G_FILESYSTEM_SOURCES}
+
 LIBSUPCXXSRCS=	${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
 
 CPPFLAGS+=	-I${DIST}/gcc



CVS commit: src/external/gpl3/gcc/lib/libsupc++

2019-02-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb 28 01:11:04 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libsupc++: Makefile.common

Log Message:
rework some commented code so it is easier to enable.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb 27 08:21:42 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
avoid hand maintained lists but use values mknative pulls out.
unfortunately, somefiles have hand coded rules.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb 27 08:21:42 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
avoid hand maintained lists but use values mknative pulls out.
unfortunately, somefiles have hand coded rules.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.43 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.44
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.43	Sun Feb 17 00:05:11 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Wed Feb 27 08:21:42 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.43 2019/02/17 00:05:11 mrg Exp $
+#	$NetBSD: Makefile,v 1.44 2019/02/27 08:21:42 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -20,7 +20,7 @@ COPTS.random.cc+=	${${ACTIVE_CC} == "cla
 
 SYMBOLS=	libstdc++-symbols.ver
 .if ${MKPIC} != "no"
-${SYMBOLS}:
+${SYMBOLS}: Makefile
 	cat ${DIST}/libstdc++-v3/config/abi/pre/gnu.ver ${G_port_specific_symbol_files} | \
 	${TOOL_GREP} -E -v '^[ ]*#(#| |$$)' | \
 	${CXX} -I${DESTDIR}/usr/include/g++ -E -P -include ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/c++config.h - > \
@@ -146,27 +146,15 @@ SRCS+=	c98-codecvt.cc c11-codecvt.cc
 
 .include "../Makefile.gthr"
 
-# XXX Make this either/or, not one, and maybe another
-# XXX pull out libstdc++/Makefile/cxx11_sources for many of these.
+# XXX Special rules in c++98/Makefile; may move into c++11 in future GCC.
 CXX11_ALWAYS=	localename.cc \
-		locale_init.cc \
-		compatibility-c++0x.cc \
-		compatibility-atomic-c++0x.cc \
-		compatibility-thread-c++0x.cc \
-		compatibility-chrono.cc \
-		compatibility-condvar.cc \
-		ios_failure.cc
+		locale_init.cc
 
-.for _s in ${CXX11_ALWAYS}
+.for _s in ${G_cxx11_sources} ${CXX11_ALWAYS}
 COPTS.${_s}+= -std=gnu++11
 .endfor
 
-# XXX pull out libstdc++/Makefile/cxx98_sources for many of these.
-CXX98_ALWAYS=	compatibility.cc \
-		compatibility-debug_list.cc \
-		compatibility-debug_list-2.cc
-
-.for _s in ${CXX98_ALWAYS}
+.for _s in ${G_cxx98_sources}
 COPTS.${_s}+= -std=gnu++98
 .endfor
 



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 17 00:05:11 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
apply -std=gnu++98 to some more files.

state that some hard coded stuff here should be pulled out with mknative.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb 17 00:05:11 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
apply -std=gnu++98 to some more files.

state that some hard coded stuff here should be pulled out with mknative.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.42 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.43
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.42	Fri Feb  8 03:59:34 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Sun Feb 17 00:05:11 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.42 2019/02/08 03:59:34 mrg Exp $
+#	$NetBSD: Makefile,v 1.43 2019/02/17 00:05:11 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -147,6 +147,7 @@ SRCS+=	c98-codecvt.cc c11-codecvt.cc
 .include "../Makefile.gthr"
 
 # XXX Make this either/or, not one, and maybe another
+# XXX pull out libstdc++/Makefile/cxx11_sources for many of these.
 CXX11_ALWAYS=	localename.cc \
 		locale_init.cc \
 		compatibility-c++0x.cc \
@@ -160,6 +161,15 @@ CXX11_ALWAYS=	localename.cc \
 COPTS.${_s}+= -std=gnu++11
 .endfor
 
+# XXX pull out libstdc++/Makefile/cxx98_sources for many of these.
+CXX98_ALWAYS=	compatibility.cc \
+		compatibility-debug_list.cc \
+		compatibility-debug_list-2.cc
+
+.for _s in ${CXX98_ALWAYS}
+COPTS.${_s}+= -std=gnu++98
+.endfor
+
 COPTS.cp-demangle.c += -Wno-unused-function
 
 COPTS.ext-inst.cc+= -Wno-error



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Feb  9 02:36:57 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch: Makefile

Log Message:
remove old comment.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/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/libstdc++-v3/include/bits/arch/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.4 src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.5
--- src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile:1.4	Sun Jul 15 00:18:13 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile	Sat Feb  9 02:36:56 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2018/07/15 00:18:13 christos Exp $
+#	$NetBSD: Makefile,v 1.5 2019/02/09 02:36:56 mrg Exp $
 
 # install multilib c++config.h files
 
@@ -40,7 +40,6 @@ c++config.h: Makefile mkcxxconfig_h.sh
 CLEANFILES+=	c++config.h
 
 INCS+=			c++config.h
-#INCSNAME_c++config.h=	cxxconfig.h
 INCSDIR=		/usr/include/g++/bits
 
 .include 



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Feb  9 02:36:57 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch: Makefile

Log Message:
remove old comment.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile

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



re: CVS commit: src/external/gpl3/gcc/lib

2019-02-08 Thread matthew green
> UBSan can be combined with ASan and TSan.
> 
> The way to go is to link UBSan into ASan/TSan/etc.
> 
> I'm doing this in LLVM ones here:
> http://netbsd.org/~kamil/llvm/llvm-sanitizers-patch1.txt
> 
> Additionally ASan should link LSan code.
> 
> We apparently want more tests in ATF verifying *San + UBSan used
> concurrently.

the code in GCC 7 explicitly sets the CAN_SANITIZE_UB how
i've done it in our reach over makefiles.

i'm at first only interested in making things work as they
are expected to upstream (which in this case, is gcc, not
their upstream :-).

you or someone else are welcome to advance this state again,
but i'm unlikely to look at it.

thanks.


.mrg.


CVS commit: src/external/gpl3/gcc/lib/libgomp

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Feb  9 00:49:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
put config/posix first in the path so that the right lock.c is used.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/lib/libgomp/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.23 src/external/gpl3/gcc/lib/libgomp/Makefile:1.24
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.23	Mon Feb  4 03:01:52 2019
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Sat Feb  9 00:48:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2019/02/04 03:01:52 mrg Exp $
+#	$NetBSD: Makefile,v 1.24 2019/02/09 00:48:59 mrg Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
@@ -57,5 +57,5 @@ COPTS.oacc-mem.c+= -Wno-pointer-arith
 COPTS.lock.c+=		-Wno-error=incompatible-pointer-types
 COPTS.target.c+=	-Wno-error=pointer-arith
 
-
-.PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix
+.PATH: ${DIST}/libgomp/config/posix
+.PATH: ${ARCHDIR} ${DIST}/libgomp



CVS commit: src/external/gpl3/gcc/lib/libgomp

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Feb  9 00:49:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
put config/posix first in the path so that the right lock.c is used.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/lib/libgomp/Makefile

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



Re: CVS commit: src/external/gpl3/gcc/lib

2019-02-08 Thread Kamil Rytarowski
On 08.02.2019 23:06, matthew green wrote:
> Module Name:  src
> Committed By: mrg
> Date: Fri Feb  8 22:06:12 UTC 2019
> 
> Modified Files:
>   src/external/gpl3/gcc/lib/libasan: Makefile
>   src/external/gpl3/gcc/lib/libtsan: Makefile
>   src/external/gpl3/gcc/lib/libubsan: Makefile
> 
> Log Message:
> define CAN_SANITIZE_UB properly:  libasan and libtsan need to not
> have it set, libubsan needs to have it set.
> 
> fixes almost all the new atf failures from GCC 7 switch.
> 
> 

UBSan can be combined with ASan and TSan.

The way to go is to link UBSan into ASan/TSan/etc.

I'm doing this in LLVM ones here:
http://netbsd.org/~kamil/llvm/llvm-sanitizers-patch1.txt

Additionally ASan should link LSan code.

We apparently want more tests in ATF verifying *San + UBSan used
concurrently.



signature.asc
Description: OpenPGP digital signature


CVS commit: src/external/gpl3/gcc/lib

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Feb  8 22:06:12 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
define CAN_SANITIZE_UB properly:  libasan and libtsan need to not
have it set, libubsan needs to have it set.

fixes almost all the new atf failures from GCC 7 switch.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/lib/libubsan/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/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.27 src/external/gpl3/gcc/lib/libasan/Makefile:1.28
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.27	Wed Feb  6 04:00:43 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Fri Feb  8 22:06:12 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2019/02/06 04:00:43 mrg Exp $
+# $NetBSD: Makefile,v 1.28 2019/02/08 22:06:12 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -42,6 +42,7 @@ ASAN_SRCS= \
 LIB=	asan
 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator.cc += -O1

Index: src/external/gpl3/gcc/lib/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.8 src/external/gpl3/gcc/lib/libtsan/Makefile:1.9
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.8	Wed Feb  6 04:00:43 2019
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Fri Feb  8 22:06:12 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2019/02/06 04:00:43 mrg Exp $
+# $NetBSD: Makefile,v 1.9 2019/02/08 22:06:12 mrg Exp $
 
 .include 
 
@@ -51,5 +51,6 @@ TSAN_SRCS+= tsan_rtl_unimpl.cc
 
 LIB=	tsan
 SRCS+=	${TSAN_SRCS}
+CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .include 

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.10 src/external/gpl3/gcc/lib/libubsan/Makefile:1.11
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.10	Wed Feb  6 04:00:43 2019
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Fri Feb  8 22:06:12 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2019/02/06 04:00:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.11 2019/02/08 22:06:12 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -31,5 +31,6 @@ COPTS.ubsan_handlers_cxx.cc+= -Wno-error
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+CPPFLAGS+=-DCAN_SANITIZE_UB=1
 
 .include 



CVS commit: src/external/gpl3/gcc/lib

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Feb  8 22:06:12 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
define CAN_SANITIZE_UB properly:  libasan and libtsan need to not
have it set, libubsan needs to have it set.

fixes almost all the new atf failures from GCC 7 switch.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2019-02-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb  6 04:00:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
update the sanitizer source lists for gcc 7.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/libubsan/Makefile

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



CVS commit: src/external/gpl3/gcc/lib

2019-02-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb  6 04:00:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
update the sanitizer source lists for gcc 7.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/libubsan/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/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.6 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.7
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.6	Sun Jul  1 17:41:49 2018
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Wed Feb  6 04:00:43 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.6 2018/07/01 17:41:49 christos Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.7 2019/02/06 04:00:43 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -10,59 +10,55 @@ interception_type_test.cc \
 interception_win.cc
 
 SANITIZER_SRCS+= \
-sanitizer_allocator.cc \
-sanitizer_common.cc \
-sanitizer_common_libcdep.cc \
-sanitizer_coverage_libcdep.cc \
-sanitizer_coverage_mapping_libcdep.cc \
-sanitizer_deadlock_detector1.cc \
-sanitizer_deadlock_detector2.cc \
-sanitizer_flags.cc \
-sanitizer_flag_parser.cc \
-sanitizer_libc.cc \
-sanitizer_libignore.cc \
-sanitizer_linux.cc \
-sanitizer_linux_libcdep.cc \
-sanitizer_mac.cc \
-sanitizer_persistent_allocator.cc \
-sanitizer_platform_limits_linux.cc \
-sanitizer_platform_limits_posix.cc \
-sanitizer_posix.cc \
-sanitizer_posix_libcdep.cc \
-sanitizer_printf.cc \
-sanitizer_procmaps_common.cc \
-sanitizer_procmaps_netbsd.cc \
-sanitizer_procmaps_freebsd.cc \
-sanitizer_procmaps_linux.cc \
-sanitizer_procmaps_mac.cc \
-sanitizer_stackdepot.cc \
-sanitizer_stacktrace.cc \
-sanitizer_stacktrace_libcdep.cc \
-sanitizer_stacktrace_printer.cc \
-sanitizer_stoptheworld_linux_libcdep.cc \
-sanitizer_suppressions.cc \
-sanitizer_symbolizer.cc \
-sanitizer_symbolizer_libbacktrace.cc \
-sanitizer_symbolizer_libcdep.cc \
-sanitizer_symbolizer_mac.cc \
-sanitizer_symbolizer_posix_libcdep.cc \
-sanitizer_symbolizer_win.cc \
-sanitizer_thread_registry.cc \
-sanitizer_tls_get_addr.cc \
-sanitizer_unwind_linux_libcdep.cc \
-sanitizer_win.cc
-
-.PATH: ${SANITIZER}/ubsan
-UBSAN_SRCS+= \
-ubsan_diag.cc \
-ubsan_init.cc \
-ubsan_flags.cc \
-ubsan_value.cc
+	sanitizer_allocator.cc \
+	sanitizer_common.cc \
+	sanitizer_common_libcdep.cc \
+	sanitizer_coverage_libcdep.cc \
+	sanitizer_coverage_mapping_libcdep.cc \
+	sanitizer_deadlock_detector1.cc \
+	sanitizer_deadlock_detector2.cc \
+	sanitizer_flags.cc \
+	sanitizer_flag_parser.cc \
+	sanitizer_libc.cc \
+	sanitizer_libignore.cc \
+	sanitizer_linux.cc \
+	sanitizer_linux_libcdep.cc \
+	sanitizer_linux_s390.cc \
+	sanitizer_mac.cc \
+	sanitizer_persistent_allocator.cc \
+	sanitizer_platform_limits_linux.cc \
+	sanitizer_platform_limits_posix.cc \
+	sanitizer_posix.cc \
+	sanitizer_posix_libcdep.cc \
+	sanitizer_printf.cc \
+	sanitizer_procmaps_common.cc \
+	sanitizer_procmaps_freebsd.cc \
+	sanitizer_procmaps_netbsd.cc \
+	sanitizer_procmaps_linux.cc \
+	sanitizer_procmaps_mac.cc \
+	sanitizer_stackdepot.cc \
+	sanitizer_stacktrace.cc \
+	sanitizer_stacktrace_libcdep.cc \
+	sanitizer_symbolizer_mac.cc \
+	sanitizer_stacktrace_printer.cc \
+	sanitizer_stoptheworld_linux_libcdep.cc \
+	sanitizer_suppressions.cc \
+	sanitizer_symbolizer.cc \
+	sanitizer_symbolizer_libbacktrace.cc \
+	sanitizer_symbolizer_libcdep.cc \
+	sanitizer_symbolizer_posix_libcdep.cc \
+	sanitizer_symbolizer_win.cc \
+	sanitizer_termination.cc \
+	sanitizer_thread_registry.cc \
+	sanitizer_tls_get_addr.cc \
+	sanitizer_unwind_linux_libcdep.cc \
+	sanitizer_win.cc
 
 # The linux build does this to avoid preinit sections on shared libraries
 CSHLIBFLAGS+= -DPIC
 
-SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS} ${UBSAN_SRCS}
+#SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS} ${UBSAN_SRCS}
+SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
 CPPFLAGS+=-I${SANITIZER}/include -I${SANITIZER}
 CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
 CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.26 src/external/gpl3/gcc/lib/libasan/Makefile:1.27
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.26	Sun Jul  1 17:41:49 2018
+++ 

CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb  6 02:57:39 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
revert, somehow I got the generated file in the wrong directory.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.40 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.41
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.40	Tue Feb  5 21:55:54 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Tue Feb  5 21:57:39 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.40 2019/02/06 02:55:54 christos Exp $
+#	$NetBSD: Makefile,v 1.41 2019/02/06 02:57:39 christos Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -33,7 +33,7 @@ libstdc++.a:: libstdc++-symbols.ver
 
 LDFLAGS+=	-Wl,-O1 \
 		-Wl,--gc-sections \
-		-Wl,--version-script=${.CURDIR}/libstdc++-symbols.ver
+		-Wl,--version-script=libstdc++-symbols.ver
 .endif
 
 CXXFLAGS.clang+=	-stdlib=libstdc++ -std=c++11 -D_GLIBCXX_ABI_TAG_CXX11=



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb  6 02:57:39 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
revert, somehow I got the generated file in the wrong directory.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb  6 02:55:54 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
fix objdir build


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3

2019-02-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb  6 02:55:54 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile

Log Message:
fix objdir build


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/gcc/lib/libstdc++-v3/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/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.39 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.40
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.39	Fri Feb  1 05:37:13 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Tue Feb  5 21:55:54 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.39 2019/02/01 10:37:13 mrg Exp $
+#	$NetBSD: Makefile,v 1.40 2019/02/06 02:55:54 christos Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -33,7 +33,7 @@ libstdc++.a:: libstdc++-symbols.ver
 
 LDFLAGS+=	-Wl,-O1 \
 		-Wl,--gc-sections \
-		-Wl,--version-script=libstdc++-symbols.ver
+		-Wl,--version-script=${.CURDIR}/libstdc++-symbols.ver
 .endif
 
 CXXFLAGS.clang+=	-stdlib=libstdc++ -std=c++11 -D_GLIBCXX_ABI_TAG_CXX11=



CVS commit: src/external/gpl3/gcc/lib/libgomp

2019-02-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb  3 12:11:11 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
- fix the sources list.
- since a few functions disappear, call this libgomp.so.2 now.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gcc/lib/libgomp/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.21 src/external/gpl3/gcc/lib/libgomp/Makefile:1.22
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.21	Tue Jan 22 23:55:54 2019
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Sun Feb  3 12:11:11 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2019/01/22 23:55:54 mrg Exp $
+#	$NetBSD: Makefile,v 1.22 2019/02/03 12:11:11 mrg Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
@@ -12,43 +12,14 @@ NOLINT=	# defined
 DIST=	${GCCDIST}
 
 LIB=	gomp
+# XXX mknative-gcc should pull out libgomp_la_SOURCES
 SRCS= \
-	alloc.c \
-	barrier.c \
-	critical.c \
-	env.c \
-	error.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
+	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
 
 
 GOMP_MACHINE_ARCH?=	${MACHINE_ARCH:S/earmv5/earm/}
@@ -65,11 +36,8 @@ CFLAGS+=-pthread
 
 CWARNFLAGS.clang+=	-Wno-conversion
 
-# libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols
-# XXXGCC5 -- marking 1.2 for GCC 5.3 for now
-# XXXGCC6 -- marking 1.3 for GCC 6 for now
-SHLIB_MAJOR=	1
-SHLIB_MINOR=	3
+SHLIB_MAJOR=	2
+SHLIB_MINOR=	0
 
 LDFLAGS+=	-Wl,--version-script,${DIST}/libgomp/libgomp.map
 
@@ -91,7 +59,8 @@ libinstall::
 COPTS+=	-Wno-stack-protector -Wno-missing-prototypes
 COPTS.oacc-mem.c+= -Wno-pointer-arith
 
-COPTS.lock.c+=	-Wno-error=incompatible-pointer-types
+COPTS.lock.c+=		-Wno-error=incompatible-pointer-types
+COPTS.target.c+=	-Wno-error=pointer-arith
 
 
 .PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix



CVS commit: src/external/gpl3/gcc/lib/libgomp

2019-02-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb  3 12:11:11 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgomp: Makefile

Log Message:
- fix the sources list.
- since a few functions disappear, call this libgomp.so.2 now.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gcc/lib/libgomp/Makefile

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



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-02-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Feb  1 10:39:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
use -Wno-error=maybe-uninitialized for one of the new ubsan files.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libubsan/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/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.8 src/external/gpl3/gcc/lib/libubsan/Makefile:1.9
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.8	Sun Jul  1 17:41:50 2018
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Fri Feb  1 10:39:03 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2018/07/01 17:41:50 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2019/02/01 10:39:03 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -27,6 +27,8 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor
 
+COPTS.ubsan_handlers_cxx.cc+= -Wno-error=maybe-uninitialized
+
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-02-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Feb  1 10:39:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
use -Wno-error=maybe-uninitialized for one of the new ubsan files.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libubsan/Makefile

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



  1   2   3   4   5   6   >