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

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-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-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.

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/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-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 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.

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.

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

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.

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.

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.

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.

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/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/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/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.

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/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/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.

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/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

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-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: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/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

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

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

Log Message:
- new shlib minor
- move -std=* handling, besides the list in CXX11_ALWAYS, to
  libsupc++/Makefile.common
- include the arch defs.mk to obtain ${G_*_SOURCES} and use them
  for -std= setting


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.11 -r1.12 \
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.38 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.39
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.38	Thu Jan 31 08:42:03 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Fri Feb  1 10:37:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.38 2019/01/31 08:42:03 mrg Exp $
+#	$NetBSD: Makefile,v 1.39 2019/02/01 10:37:13 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -47,7 +47,7 @@ CWARNFLAGS.clang+=	-Wno-logical-op-paren
 .include "${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
 
 SHLIB_MAJOR=	8
-SHLIB_MINOR=	1
+SHLIB_MINOR=	2
 
 SUBDIR=		include
 
@@ -153,33 +153,10 @@ CXX11_ALWAYS=	localename.cc \
 		compatibility-condvar.cc \
 		ios_failure.cc
 
-.for _s in ${G_CPP11_SOURCES:M*.cc} ${CXX11_ALWAYS}
+.for _s in ${CXX11_ALWAYS}
 COPTS.${_s}+= -std=gnu++11
 .endfor
 
-.for _s in ${G_FILESYSTEM_SOURCES:M*.cc}
-COPTS.${_s}+= -std=gnu++14
-.endfor
-
-CXX98_ALWAYS=	collate_members_cow.cc \
-		messages_members_cow.cc \
-		monetary_members_cow.cc \
-		numeric_members_cow.cc \
-		atomicity.cc \
-		collate_members.cc \
-		messages_members.cc \
-		monetary_members.cc \
-		numeric_members.cc \
-		time_members.cc \
-		basic_file.cc \
-		c++locale.cc
-
-.for _s in ${CXX98_ALWAYS}
-. if empty(COPTS.${_s}:M-std=*)
-#COPTS.${_s}+= -std=gnu++98
-. endif
-.endfor
-
 COPTS.cp-demangle.c += -Wno-unused-function
 
 COPTS.ext-inst.cc+= -Wno-error

Index: src/external/gpl3/gcc/lib/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.11 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.12
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.11	Thu Jan 31 06:50:51 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Fri Feb  1 10:37:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.11 2019/01/31 06:50:51 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.12 2019/02/01 10:37:13 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -12,7 +12,12 @@ LIBSTDCXX_MACHINE_ARCH=${MLIBDIR}
 LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
 .endif
 
+# 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}
 LIBSUPCXXSRCS=	${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
 
 CPPFLAGS+=	-I${DIST}/gcc
@@ -24,44 +29,48 @@ CPPFLAGS+=	-DHAVE_STDLIB_H -DHAVE_STRING
 
 CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
 
+.for _f in ${G_CPP98_SOURCES}
+COPTS.${_f}+=	-std=gnu++98
+.endfor
+
 STD_GNU11=	\
-		bad_array_length \
-		bad_array_new \
-		eh_aux_runtime \
-		eh_ptr \
-		eh_terminate \
-		eh_throw \
-		guard \
-		atexit_thread \
-		nested_exception \
-		new_handler \
-		new_op \
-		new_opnt
+		bad_array_length.cc \
+		bad_array_new.cc \
+		eh_aux_runtime.cc \
+		eh_ptr.cc \
+		eh_terminate.cc \
+		eh_throw.cc \
+		guard.cc \
+		atexit_thread.cc \
+		nested_exception.cc \
+		new_handler.cc \
+		new_op.cc \
+		new_opnt.cc
 
-.for _f in ${STD_GNU11}
-COPTS.${_f}.cc=	-std=gnu++11
+.for _f in ${STD_GNU11} ${G_CPP11_SOURCES:M*.cc} 
+COPTS.${_f}+=	-std=gnu++11
 .endfor
 
 STD_GNU14=	\
-		del_ops \
-		del_opvs
+		del_ops.cc \
+		del_opvs.cc
 
-.for _f in ${STD_GNU14}
-COPTS.${_f}.cc=	-std=gnu++14  -Wno-sized-deallocation
+.for _f in ${STD_GNU14} ${G_FILESYSTEM_SOURCES:M*.cc}
+COPTS.${_f}+=	-std=gnu++14  -Wno-sized-deallocation
 .endfor
 
 STD_GNU1Z=	\
-		new_opa \
-		new_opant \
-		new_opva \
-		new_opvant \
-		del_opa \
-		del_opant \
-		del_opsa \
-		del_opva \
-		del_opvant \
-		del_opvsa
+		new_opa.cc \
+		new_opant.cc \
+		new_opva.cc \
+		new_opvant.cc \
+		del_opa.cc \
+		del_opant.cc \
+		del_opsa.cc \
+		del_opva.cc \
+		del_opvant.cc \
+		del_opvsa.cc
 
 .for _f in ${STD_GNU1Z}
-COPTS.${_f}.cc=	-std=gnu++1z
+COPTS.${_f}+=	-std=gnu++1z
 .endfor



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

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

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

Log Message:
- new shlib majors


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libasan/shlib_version
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/liblsan/shlib_version
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libtsan/shlib_version
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libubsan/shlib_version

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/shlib_version
diff -u src/external/gpl3/gcc/lib/libasan/shlib_version:1.4 src/external/gpl3/gcc/lib/libasan/shlib_version:1.5
--- src/external/gpl3/gcc/lib/libasan/shlib_version:1.4	Sat Feb  3 21:27:45 2018
+++ src/external/gpl3/gcc/lib/libasan/shlib_version	Fri Feb  1 10:31:55 2019
@@ -1,2 +1,2 @@
-major=3
+major=4
 minor=0

Index: src/external/gpl3/gcc/lib/liblsan/shlib_version
diff -u src/external/gpl3/gcc/lib/liblsan/shlib_version:1.1 src/external/gpl3/gcc/lib/liblsan/shlib_version:1.2
--- src/external/gpl3/gcc/lib/liblsan/shlib_version:1.1	Tue Jun 26 20:54:32 2018
+++ src/external/gpl3/gcc/lib/liblsan/shlib_version	Fri Feb  1 10:31:55 2019
@@ -1,2 +1,2 @@
-major=1
+major=2
 minor=0

Index: src/external/gpl3/gcc/lib/libtsan/shlib_version
diff -u src/external/gpl3/gcc/lib/libtsan/shlib_version:1.1 src/external/gpl3/gcc/lib/libtsan/shlib_version:1.2
--- src/external/gpl3/gcc/lib/libtsan/shlib_version:1.1	Wed Jan  7 03:49:13 2015
+++ src/external/gpl3/gcc/lib/libtsan/shlib_version	Fri Feb  1 10:31:55 2019
@@ -1,2 +1,2 @@
-major=0
+major=1
 minor=0

Index: src/external/gpl3/gcc/lib/libubsan/shlib_version
diff -u src/external/gpl3/gcc/lib/libubsan/shlib_version:1.3 src/external/gpl3/gcc/lib/libubsan/shlib_version:1.4
--- src/external/gpl3/gcc/lib/libubsan/shlib_version:1.3	Sat Feb  3 21:27:45 2018
+++ src/external/gpl3/gcc/lib/libubsan/shlib_version	Fri Feb  1 10:31:56 2019
@@ -1,2 +1,2 @@
-major=2
+major=3
 minor=0



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

2019-01-31 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jan 31 08:42:03 UTC 2019

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

Log Message:
only a relatively small number of files that aren't in the c++98/ dir
need to be compiled in gnu++98 mode.  list them explicitly instead of
assuming anything with no -std should be gnu++98.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 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.37 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.38
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.37	Thu Jan 31 06:50:51 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Thu Jan 31 08:42:03 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2019/01/31 06:50:51 mrg Exp $
+#	$NetBSD: Makefile,v 1.38 2019/01/31 08:42:03 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -161,9 +161,22 @@ COPTS.${_s}+= -std=gnu++11
 COPTS.${_s}+= -std=gnu++14
 .endfor
 
-.for _s in ${SRCS:M*.cc}
+CXX98_ALWAYS=	collate_members_cow.cc \
+		messages_members_cow.cc \
+		monetary_members_cow.cc \
+		numeric_members_cow.cc \
+		atomicity.cc \
+		collate_members.cc \
+		messages_members.cc \
+		monetary_members.cc \
+		numeric_members.cc \
+		time_members.cc \
+		basic_file.cc \
+		c++locale.cc
+
+.for _s in ${CXX98_ALWAYS}
 . if empty(COPTS.${_s}:M-std=*)
-COPTS.${_s}+= -std=gnu++98
+#COPTS.${_s}+= -std=gnu++98
 . endif
 .endfor
 



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

2019-01-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jan 31 06:47:22 UTC 2019

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

Log Message:
don't build the ditf files on x86 anymore.  they come from soft-fp now.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 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.38 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.39
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.38	Sat Jan 19 17:11:02 2019
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Thu Jan 31 06:47:21 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.38 2019/01/19 17:11:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.39 2019/01/31 06:47:21 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -72,15 +72,21 @@ LIB2FUNCS_ALL+= \
 empty(LIBGCC_MACHINE_ARCH:Maarch64*) && \
 empty(LIBGCC_MACHINE_ARCH:Mmips64*)
 
+EXTRA_FUNC_SIZES=	sf df xf
+
+.if ${LIBGCC_MACHINE_ARCH} != "x86_64" && ${LIBGCC_MACHINE_ARCH} != "i386"
+EXTRA_FUNC_SIZES+=	tf
+.endif
+
 # non swfloat versions 
 .for _p in _fix _fixuns
-. for _m in sf df xf tf
+. for _m in ${EXTRA_FUNC_SIZES}
 LIB2FUNCS_ALL+=	${_p}${_m}di
 . endfor
 .endfor
 
 .for _p in _float _floatun
-. for _m in sf df xf tf
+. for _m in ${EXTRA_FUNC_SIZES}
 LIB2FUNCS_ALL+=	${_p}di${_m}
 . endfor
 .endfor



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

2019-01-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jan 31 06:53:21 UTC 2019

Added Files:
src/external/gpl3/gcc/lib/libgcc/arch/aarch64: gthr-defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/powerpc: gthr-defs.mk

Log Message:
add missing files


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/gthr-defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/gthr-defs.mk

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/libgcc/arch/aarch64/gthr-defs.mk
diff -u /dev/null src/external/gpl3/gcc/lib/libgcc/arch/aarch64/gthr-defs.mk:1.1
--- /dev/null	Thu Jan 31 06:53:21 2019
+++ src/external/gpl3/gcc/lib/libgcc/arch/aarch64/gthr-defs.mk	Thu Jan 31 06:53:21 2019
@@ -0,0 +1,9 @@
+# This file is automatically generated.  DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.96 2019/01/19 20:02:06 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=aarch64/aarch64-unwind.h
+G_sfp_machine_header=aarch64/sfp-machine.h
+G_thread_header=gthr-posix.h

Index: src/external/gpl3/gcc/lib/libgcc/arch/powerpc/gthr-defs.mk
diff -u /dev/null src/external/gpl3/gcc/lib/libgcc/arch/powerpc/gthr-defs.mk:1.1
--- /dev/null	Thu Jan 31 06:53:21 2019
+++ src/external/gpl3/gcc/lib/libgcc/arch/powerpc/gthr-defs.mk	Thu Jan 31 06:53:21 2019
@@ -0,0 +1,9 @@
+# This file is automatically generated.  DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.96 2019/01/19 20:02:06 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=rs6000/sfp-machine.h
+G_thread_header=gthr-posix.h



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

2019-01-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jan 31 06:50:51 UTC 2019

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

Log Message:
- add new filesystem/ sources.
- sync paths.
- remove -Wno-error, doesn't seem to be needed anymore


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.10 -r1.11 \
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.36 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.37
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.36	Tue Jan 22 23:55:54 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Thu Jan 31 06:50:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.36 2019/01/22 23:55:54 mrg Exp $
+#	$NetBSD: Makefile,v 1.37 2019/01/31 06:50:51 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -62,6 +62,7 @@ CPPFLAGS+=	-D_GLIBCXX_SHARED -DGTHREAD_U
 #CXXFLAGS+=	${G_SECTION_FLAGS}
 #CXXFLAGS+=	-ffunction-sections -fdata-sections 
 COPTS.bitmap_allocator.cc+=	-ffunction-sections -fdata-sections 
+COPTS.pool_allocator.cc+=	-ffunction-sections -fdata-sections 
 
 CONF=		${DIST}/libstdc++-v3/config
 
@@ -151,18 +152,21 @@ CXX11_ALWAYS=	localename.cc \
 		compatibility-chrono.cc \
 		compatibility-condvar.cc \
 		ios_failure.cc
+
+.for _s in ${G_CPP11_SOURCES:M*.cc} ${CXX11_ALWAYS}
+COPTS.${_s}+= -std=gnu++11
+.endfor
+
+.for _s in ${G_FILESYSTEM_SOURCES:M*.cc}
+COPTS.${_s}+= -std=gnu++14
+.endfor
+
 .for _s in ${SRCS:M*.cc}
 . if empty(COPTS.${_s}:M-std=*)
 COPTS.${_s}+= -std=gnu++98
 . endif
 .endfor
-.for _s in ${G_CPP11_SOURCES:M*.cc} ${CXX11_ALWAYS}
-# XXX error: 'template class std::auto_ptr' is deprecated
-COPTS.${_s}+= -std=gnu++11 -Wno-error
-.endfor
 
-COPTS.del_ops.cc += -Wno-c++14-compat
-COPTS.del_opvs.cc += -Wno-c++14-compat
 COPTS.cp-demangle.c += -Wno-unused-function
 
 COPTS.ext-inst.cc+= -Wno-error
@@ -182,6 +186,7 @@ COPTS.${f}.cc+= -fimplicit-templates ${G
 .PATH:	${DIST}/libstdc++-v3/src \
 	${DIST}/libstdc++-v3/src/c++98 \
 	${DIST}/libstdc++-v3/src/c++11 \
+	${DIST}/libstdc++-v3/src/filesystem \
 	${DIST}/libstdc++-v3/libsupc++ \
 	${DIST}/libstdc++-v3/config/os/bsd/netbsd \
 	${CONF}/locale/generic \

Index: src/external/gpl3/gcc/lib/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.10 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.11
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.10	Tue Jan 22 23:55:54 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Thu Jan 31 06:50:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.10 2019/01/22 23:55:54 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.11 2019/01/31 06:50:51 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -12,7 +12,7 @@ LIBSTDCXX_MACHINE_ARCH=${MLIBDIR}
 LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
 .endif
 
-LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
+LIBSTDCXXSRCS=	${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} ${G_FILESYSTEM_SOURCES}
 LIBSUPCXXSRCS=	${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
 
 CPPFLAGS+=	-I${DIST}/gcc
@@ -24,25 +24,44 @@ CPPFLAGS+=	-DHAVE_STDLIB_H -DHAVE_STRING
 
 CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
 
-STD_GNU11=	bad_array_length bad_array_new \
-		eh_aux_runtime eh_ptr eh_terminate eh_throw \
-		guard atexit_thread nested_exception \
-		new_handler new_op new_opnt
+STD_GNU11=	\
+		bad_array_length \
+		bad_array_new \
+		eh_aux_runtime \
+		eh_ptr \
+		eh_terminate \
+		eh_throw \
+		guard \
+		atexit_thread \
+		nested_exception \
+		new_handler \
+		new_op \
+		new_opnt
+
 .for _f in ${STD_GNU11}
 COPTS.${_f}.cc=	-std=gnu++11
 .endfor
 
-STD_GNU14=	del_ops del_opvs
+STD_GNU14=	\
+		del_ops \
+		del_opvs
+
 .for _f in ${STD_GNU14}
 COPTS.${_f}.cc=	-std=gnu++14  -Wno-sized-deallocation
 .endfor
 
-STD_GNU1Z=	new_opa new_opant \
-		new_opva new_opvant \
-		del_opa del_opant del_opsa \
-		del_opva del_opvant del_opvsa
+STD_GNU1Z=	\
+		new_opa \
+		new_opant \
+		new_opva \
+		new_opvant \
+		del_opa \
+		del_opant \
+		del_opsa \
+		del_opva \
+		del_opvant \
+		del_opvsa
 
 .for _f in ${STD_GNU1Z}
 COPTS.${_f}.cc=	-std=gnu++1z
 .endfor
-



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

2019-01-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jan 22 23:55:54 UTC 2019

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

Log Message:
- fix Makefile.gthr CONFIG_LINKS handling.  demand only that
  gthr-default.h source be found.  fix installing the symlink.
- -Wno-error=incompatible-pointer-types needed for libgomp/lock.c
- build new libsupc++ files with -std=gnu++1z
- install new libstdc++ bits files. (XXX use bits_sup_headers
  from libstdc++/include/Makefile.am with mknative-gccm)
- start to get libstdc++ to build: various flag updates.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/Makefile.gthr
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc/lib/libgomp/Makefile
cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.21 -r1.22 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile
cvs rdiff -u -r1.9 -r1.10 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/Makefile.gthr
diff -u src/external/gpl3/gcc/lib/Makefile.gthr:1.2 src/external/gpl3/gcc/lib/Makefile.gthr:1.3
--- src/external/gpl3/gcc/lib/Makefile.gthr:1.2	Sat Jan 19 20:02:06 2019
+++ src/external/gpl3/gcc/lib/Makefile.gthr	Tue Jan 22 23:55:54 2019
@@ -1,22 +1,43 @@
-#	$NetBSD: Makefile.gthr,v 1.2 2019/01/19 20:02:06 mrg Exp $
+#	$NetBSD: Makefile.gthr,v 1.3 2019/01/22 23:55:54 mrg Exp $
 
 # makefile fragment to setup files selected by configure
 
 .if ${MKGCC} != "no"
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
+LIBGCC_DIST=${DIST}/libgcc
 
-. -include "${DIST}/../lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}/gthr-defs.mk"
+. include "${DIST}/../lib/libgcc/arch/${LIBGCC_MACHINE_ARCH}/gthr-defs.mk"
 
-CONFIG_LINKS= \
-	${G_enable_execute_stack}	enable-execute-stack.c \
-	${G_unwind_header}		unwind.h \
-	${G_md_unwind_header}		md-unwind-support.h \
-	${G_sfp_machine_header}		sfp-machine.h \
+.if !empty(G_enable_execute_stack)
+CONFIG_LINKS+= \
+	${G_enable_execute_stack}	enable-execute-stack.c
+.endif
+
+.if !empty(G_unwind_header)
+CONFIG_LINKS+= \
+	${G_unwind_header}		unwind.h
+.endif
+
+.if !empty(G_md_unwind_header)
+CONFIG_LINKS+= \
+	${G_md_unwind_header}		md-unwind-support.h
+.endif
+
+.if !empty(G_sfp_machine_header)
+CONFIG_LINKS+= \
+	${G_sfp_machine_header}		sfp-machine.h
+.endif
+
+# Demand this one exists.
+CONFIG_LINKS+= \
 	${G_thread_header}		gthr-default.h
+
 BUILDSYMLINKS+=	${CONFIG_LINKS}
 . for _src _dst in ${CONFIG_LINKS}
 DPSRCS+=	${_dst}
 . endfor
 
+.PATH: ${LIBGCC_DIST} ${LIBGCC_DIST}/config
+
 .endif

Index: src/external/gpl3/gcc/lib/libgomp/Makefile
diff -u src/external/gpl3/gcc/lib/libgomp/Makefile:1.20 src/external/gpl3/gcc/lib/libgomp/Makefile:1.21
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.20	Sun Aug 12 21:48:57 2018
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Tue Jan 22 23:55:54 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2018/08/12 21:48:57 mrg Exp $
+#	$NetBSD: Makefile,v 1.21 2019/01/22 23:55:54 mrg Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
@@ -91,4 +91,7 @@ libinstall::
 COPTS+=	-Wno-stack-protector -Wno-missing-prototypes
 COPTS.oacc-mem.c+= -Wno-pointer-arith
 
+COPTS.lock.c+=	-Wno-error=incompatible-pointer-types
+
+
 .PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.35 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.36
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.35	Sat Jan 19 17:11:02 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Tue Jan 22 23:55:54 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.35 2019/01/19 17:11:02 mrg Exp $
+#	$NetBSD: Makefile,v 1.36 2019/01/22 23:55:54 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -52,14 +52,16 @@ SHLIB_MINOR=	1
 SUBDIR=		include
 
 SRCS=		${LIBSUPCXXSRCS} ${LIBSTDCXXSRCS}
+
+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
+
 # affects profiling; can't switch it off just for profiling easily.
 #CXXFLAGS+=	${G_SECTION_FLAGS}
 #CXXFLAGS+=	-ffunction-sections -fdata-sections 
-CXXFLAGS+=	-fno-implicit-templates -fdiagnostics-show-location=once
-CPPFLAGS+=	-I${DIST}/libstdc++-v3/include
-CPPFLAGS+=	-I${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}
-# include backwards compatible code
-CPPFLAGS+= -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK
+COPTS.bitmap_allocator.cc+=	-ffunction-sections -fdata-sections 
 
 CONF=		

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

2019-01-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jan 19 17:11:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc
src/external/gpl3/gcc/lib/libobjc: Makefile
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile
Added Files:
src/external/gpl3/gcc/lib: Makefile.gthr
Removed Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.srcs

Log Message:
begin to handle new unwind.h and gthr-default.h stuff.
put gthr stuff in a common makefile.

remove ancient unused Makefile.srcs.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/Makefile.gthr
cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/gcc/lib/libgcc/Makefile.inc
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gcc/lib/libgcc/Makefile.srcs
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libobjc/Makefile
cvs rdiff -u -r1.34 -r1.35 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile
cvs rdiff -u -r1.11 -r1.12 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/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.37 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.38
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.37	Wed Sep  5 00:51:42 2018
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Jan 19 17:11:02 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.37 2018/09/05 00:51:42 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.38 2019/01/19 17:11:02 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -103,7 +103,6 @@ LIB2DIVMOD=	${LIB2_DIVMOD_FUNCS:=.c}
 .if ${HAVE_LIBGCC_EH} == "no"
 LIB2_EH=	${G_LIB2ADDEH:M*.c:T:Nunwind-dw2.c:Nunwind-dw2-fde-dip.c:Nunwind-sjlj.c:Nunwind-c.c:Nunwind-arm.c:Npr-support.c}
 LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T:Nlibunwind.S}
-G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
 .else
 LIB2_EH=	${G_LIB2ADDEH:M*.c:T}
 LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}
@@ -192,14 +191,7 @@ dp-bit.c: ${.CURDIR}/Makefile
 .include "../Makefile.tconfigh"
 DPSRCS+=	tconfig.h
 
-.if ${MKGCC} != "no"
-.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
-BUILDSYMLINKS+=	${G_CONFIGLINKS}
-.for _src _dst in ${G_CONFIGLINKS}
-DPSRCS+=	${_dst}
-.endfor
-.endif
-.endif
+.include "../Makefile.gthr"
 
 EXTRA_FAKEHEADERS=	options.h libgcc_tm.h
 .include "../../Makefile.hacks"

Index: src/external/gpl3/gcc/lib/libobjc/Makefile
diff -u src/external/gpl3/gcc/lib/libobjc/Makefile:1.15 src/external/gpl3/gcc/lib/libobjc/Makefile:1.16
--- src/external/gpl3/gcc/lib/libobjc/Makefile:1.15	Wed Apr 20 17:18:52 2016
+++ src/external/gpl3/gcc/lib/libobjc/Makefile	Sat Jan 19 17:11:02 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2016/04/20 17:18:52 christos Exp $
+#	$NetBSD: Makefile,v 1.16 2019/01/19 17:11:02 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -74,19 +74,7 @@ ${OBJS} ${POBJS} ${SOBJS}: runtime-info.
 
 ${SRCS}: tconfig.h options.h
 
-.if ${HAVE_LIBGCC_EH} == "no"
-G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
-.endif
-
-.if ${MKGCC} != "no"
-.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
-BUILDSYMLINKS+=	${G_CONFIGLINKS}
-.for _src _dst in ${G_CONFIGLINKS}
-DPSRCS+=	${_dst}
-.endfor
-.endif
-.endif
-
+.include "../Makefile.gthr"
 .include "../Makefile.tconfigh"
 .include "../Makefile.hacks"
 

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.34 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.35
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.34	Mon Nov  5 08:45:32 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Sat Jan 19 17:11:02 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.34 2018/11/05 08:45:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.35 2019/01/19 17:11:02 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -134,18 +134,7 @@ BUILDSYMLINKS+=	\
 	${GLIBCXX_SRCDIR}/src/c++11/codecvt.cc c11-codecvt.cc
 SRCS+=	c98-codecvt.cc c11-codecvt.cc
 
-.if ${HAVE_LIBGCC_EH} == "no"
-G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
-.endif
-
-.if ${MKGCC} != "no"
-.if defined(G_CONFIGLINKS) && !empty(G_CONFIGLINKS)
-BUILDSYMLINKS+=${G_CONFIGLINKS}
-.for _src _dst in ${G_CONFIGLINKS}
-DPSRCS+=   ${_dst}
-.endfor
-.endif
-.endif
+.include "../Makefile.gthr"
 
 # XXX Make this either/or, not one, and maybe another
 CXX11_ALWAYS=	localename.cc \

Index: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile:1.19 src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile:1.20
--- 

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

2018-11-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Nov  5 08:45:32 UTC 2018

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

Log Message:
GCC 6.5 ios_failure.cc needs to be compiled with cxx mode.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 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.33 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.34
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.33	Sat Apr  7 22:17:52 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Mon Nov  5 08:45:32 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.33 2018/04/07 22:17:52 mrg Exp $
+#	$NetBSD: Makefile,v 1.34 2018/11/05 08:45:32 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -154,7 +154,8 @@ CXX11_ALWAYS=	localename.cc \
 		compatibility-atomic-c++0x.cc \
 		compatibility-thread-c++0x.cc \
 		compatibility-chrono.cc \
-		compatibility-condvar.cc
+		compatibility-condvar.cc \
+		ios_failure.cc
 .for _s in ${SRCS:M*.cc}
 . if empty(COPTS.${_s}:M-std=*)
 COPTS.${_s}+= -std=gnu++98



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

2018-09-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  5 00:51:42 UTC 2018

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

Log Message:
pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add
it to CPPFLAGS.

this fixes PR#53567 for me.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 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.36 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.37
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.36	Sat Jul 14 23:40:19 2018
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Wed Sep  5 00:51:42 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.36 2018/07/14 23:40:19 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.37 2018/09/05 00:51:42 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -28,6 +28,7 @@ CPPFLAGS+=	-I${DIST}/libgcc/config/i386
 CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
 .endif
 CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
+CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
 
 .if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
 ${LIBGCC_MACHINE_ARCH} == "sh3el" || \



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

2018-09-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep  5 00:22:10 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/aarch64: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/alpha: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/arm: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/armeb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earm: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmeb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmhf: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmhfeb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv4: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv4eb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv6: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv6eb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hf: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hfeb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv7: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv7eb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hf: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hfeb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/hppa: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/i386: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/ia64: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/m68000: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/m68k: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/mips64eb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/mips64el: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/mipseb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/mipsel: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/powerpc: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/sh3eb: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/sh3el: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/sparc: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/sparc64: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/vax: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/x86_64: defs.mk

Log Message:
regen to pull out INTERNAL_CFLAGS.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/alpha/defs.mk
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/arm/defs.mk
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/armeb/defs.mk
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libgcc/arch/earm/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/earmeb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/earmhf/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmhfeb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/earmv4/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv4eb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/earmv6/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv6eb/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hf/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hfeb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/earmv7/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv7eb/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hf/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hfeb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/hppa/defs.mk
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libgcc/arch/ia64/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/lib/libgcc/arch/mips64eb/defs.mk
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgcc/arch/mips64el/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/mipseb/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/mipsel/defs.mk
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/defs.mk
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/sh3eb/defs.mk
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/sh3el/defs.mk
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/sparc/defs.mk
cvs rdiff -u -r1.3 -r1.4 \

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

2018-07-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jul 15 00:18:13 UTC 2018

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

Log Message:
c++config for 32/64 arm


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/aarch64/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/arm/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.3 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.3	Fri Sep 19 13:23:24 2014
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile	Sat Jul 14 20:18:13 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2014/09/19 17:23:24 matt Exp $
+#	$NetBSD: Makefile,v 1.4 2018/07/15 00:18:13 christos Exp $
 
 # install multilib c++config.h files
 
@@ -27,9 +27,10 @@ SUBDIR=		riscv32 riscv64
 CXXCONFIGARGS=	riscv64 _LP64 riscv32
 .endif
 
-# XXX arm variants are missing, but hopefully won't need them
-# until aarch64 anyway.
-
+.if ${MACHINE_ARCH} == "aarch64"
+SUBDIR=		arm aarch64
+CXXCONFIGARGS=	aarch64 _LP64 arm
+.endif
 
 # now install the generated front end
 

Added files:

Index: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/aarch64/Makefile
diff -u /dev/null src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/aarch64/Makefile:1.1
--- /dev/null	Sat Jul 14 20:18:14 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/aarch64/Makefile	Sat Jul 14 20:18:13 2018
@@ -0,0 +1,4 @@
+#	$NetBSD: Makefile,v 1.1 2018/07/15 00:18:13 christos Exp $
+
+GCC_MACHINE_ARCH=aarch64
+.include "../Makefile.arch_bits"

Index: src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/arm/Makefile
diff -u /dev/null src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/arm/Makefile:1.1
--- /dev/null	Sat Jul 14 20:18:14 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/arm/Makefile	Sat Jul 14 20:18:13 2018
@@ -0,0 +1,4 @@
+#	$NetBSD: Makefile,v 1.1 2018/07/15 00:18:13 christos Exp $
+
+GCC_MACHINE_ARCH=arm
+.include "../Makefile.arch_bits"



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

2018-07-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jul 14 23:40:19 UTC 2018

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

Log Message:
avoid dups for aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 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.35 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.36
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.35	Sat Oct 22 16:33:28 2016
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Jul 14 19:40:19 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.35 2016/10/22 20:33:28 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.36 2018/07/14 23:40:19 christos Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -68,6 +68,7 @@ LIB2FUNCS_ALL+= \
 
 .if ${LIBGCC_MACHINE_ARCH} != "coldfire" && \
 empty(LIBGCC_MACHINE_ARCH:Mearm*) && \
+empty(LIBGCC_MACHINE_ARCH:Maarch64*) && \
 empty(LIBGCC_MACHINE_ARCH:Mmips64*)
 
 # non swfloat versions 



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

2018-07-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jul  1 17:41:50 UTC 2018

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/libubsan: Makefile

Log Message:
vaxinate the sanitizer build.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.25 -r1.26 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.7 -r1.8 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.5 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.6
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.5	Sat Jun  9 18:40:00 2018
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sun Jul  1 13:41:49 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.5 2018/06/09 22:40:00 christos Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.6 2018/07/01 17:41:49 christos Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -79,13 +79,18 @@ COPTS+=-fno-builtin -fno-exceptions -fno
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.sanitizer_allocator.cc += -O1
+COPTS.sanitizer_common.cc += -O1
+COPTS.sanitizer_common_libcdep.cc += -O1
 COPTS.sanitizer_coverage_libcdep.cc += -O1
 COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
 COPTS.sanitizer_deadlock_detector1.cc += -O1
 COPTS.sanitizer_mac.cc += -O1
 COPTS.sanitizer_netbsd.cc += -O1
+COPTS.sanitizer_posix.cc += -O1
 COPTS.sanitizer_printf.cc += -O1
 COPTS.sanitizer_procmaps_common.cc += -O1
 COPTS.sanitizer_stackdepot.cc += -O1
 COPTS.sanitizer_symbolizer_libcdep.cc += -O1
+COPTS.ubsan_diag.cc += -O1
+COPTS.ubsan_init.cc += -O1
 .endif

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.25 src/external/gpl3/gcc/lib/libasan/Makefile:1.26
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.25	Thu Jun 28 06:15:01 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Sun Jul  1 13:41:49 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2018/06/28 10:15:01 christos Exp $
+# $NetBSD: Makefile,v 1.26 2018/07/01 17:41:49 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -43,9 +43,6 @@ LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator.cc += -O1
 COPTS.asan_report.cc += -O1
-COPTS.sanitizer_common.cc += -O1
-COPTS.sanitizer_common_libcdep.cc += -O1
-COPTS.sanitizer_posix.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.2 src/external/gpl3/gcc/lib/liblsan/Makefile:1.3
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.2	Tue Jun 26 17:06:45 2018
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Sun Jul  1 13:41:50 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2018/06/26 21:06:45 christos Exp $
+# $NetBSD: Makefile,v 1.3 2018/07/01 17:41:50 christos Exp $
 
 .include 
 
@@ -16,6 +16,9 @@ lsan_interceptors.cc \
 lsan_preinit.cc \
 lsan_thread.cc
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.lsan_allocator.cc += -O1
+.endif
 
 LIB=	lsan
 SRCS+=	${LSAN_SRCS}

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.7 src/external/gpl3/gcc/lib/libubsan/Makefile:1.8
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.7	Mon Jun 11 11:29:33 2018
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Sun Jul  1 13:41:50 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2018/06/11 15:29:33 christos Exp $
+#	$NetBSD: Makefile,v 1.8 2018/07/01 17:41:50 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -31,8 +31,4 @@ LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
-.if ${MACHINE_ARCH} == "vax"
-COPTS += -O1
-.endif
-
 .include 



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

2018-06-28 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Jun 28 14:01:12 UTC 2018

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

Log Message:
Remove (recently) commented out (recently added) liblsan SUBDIR
(it has been added a different way.)


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 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.16 src/external/gpl3/gcc/lib/Makefile:1.17
--- src/external/gpl3/gcc/lib/Makefile:1.16	Thu Jun 28 10:15:01 2018
+++ src/external/gpl3/gcc/lib/Makefile	Thu Jun 28 14:01:12 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2018/06/28 10:15:01 christos Exp $
+#	$NetBSD: Makefile,v 1.17 2018/06/28 14:01:12 kre Exp $
 
 .include 
 
@@ -6,7 +6,6 @@
 SUBDIR+= libgcc .WAIT
 SUBDIR+= libiberty libobjc libgomp
 SUBDIR+= libbacktrace
-# SUBDIR+= liblsan
 SUBDIR+= liblto_plugin
 
 .if (${MKLIBSTDCXX} != "no") && (${MKCXX} != "no")



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

2018-06-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jun 28 10:15:01 UTC 2018

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

Log Message:
put back lsan


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/Makefile
cvs rdiff -u -r1.24 -r1.25 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
diff -u src/external/gpl3/gcc/lib/Makefile:1.15 src/external/gpl3/gcc/lib/Makefile:1.16
--- src/external/gpl3/gcc/lib/Makefile:1.15	Wed Jun 27 02:06:39 2018
+++ src/external/gpl3/gcc/lib/Makefile	Thu Jun 28 06:15:01 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2018/06/27 06:06:39 martin Exp $
+#	$NetBSD: Makefile,v 1.16 2018/06/28 10:15:01 christos Exp $
 
 .include 
 
@@ -13,6 +13,6 @@ SUBDIR+= liblto_plugin
 SUBDIR+= libsupc++ libstdc++-v3
 .endif
 
-SUBDIR+= .WAIT libasan libubsan
+SUBDIR+= .WAIT libasan liblsan libubsan
 
 .include 

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.24 src/external/gpl3/gcc/lib/libasan/Makefile:1.25
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.24	Sat Jun  9 18:39:29 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Thu Jun 28 06:15:01 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2018/06/09 22:39:29 christos Exp $
+# $NetBSD: Makefile,v 1.25 2018/06/28 10:15:01 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -8,7 +8,7 @@ NOSANITIZER=	# defined
 .include "../Makefile.inc"
 .include "../Makefile.sanitizer"
 
-.PATH: ${SANITIZER}/asan
+.PATH: ${SANITIZER}/asan ${SANITIZER}/lsan
 
 ASAN_SRCS= \
 asan_activation.cc \
@@ -37,7 +37,7 @@ asan_win_dll_thunk.cc \
 asan_win_dynamic_runtime_thunk.cc
 
 LIB=	asan
-SRCS+=	${ASAN_SRCS}
+SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
 .if ${MACHINE_ARCH} == "vax"



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

2018-06-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Jun 27 06:06:39 UTC 2018

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

Log Message:
Disable liblsan for now - it seems to be 64bit only - all 32bits are
failing and the 64bit ones with compat 32bit do not work either.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.14 src/external/gpl3/gcc/lib/Makefile:1.15
--- src/external/gpl3/gcc/lib/Makefile:1.14	Wed Jun 27 01:25:49 2018
+++ src/external/gpl3/gcc/lib/Makefile	Wed Jun 27 06:06:39 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2018/06/27 01:25:49 kre Exp $
+#	$NetBSD: Makefile,v 1.15 2018/06/27 06:06:39 martin Exp $
 
 .include 
 
@@ -6,7 +6,7 @@
 SUBDIR+= libgcc .WAIT
 SUBDIR+= libiberty libobjc libgomp
 SUBDIR+= libbacktrace
-SUBDIR+= liblsan
+# SUBDIR+= liblsan
 SUBDIR+= liblto_plugin
 
 .if (${MKLIBSTDCXX} != "no") && (${MKCXX} != "no")



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

2018-06-26 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed Jun 27 01:25:49 UTC 2018

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

Log Message:
Since liblsan has been added to the sets already, we should build it.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 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.13 src/external/gpl3/gcc/lib/Makefile:1.14
--- src/external/gpl3/gcc/lib/Makefile:1.13	Tue Mar  7 16:26:37 2017
+++ src/external/gpl3/gcc/lib/Makefile	Wed Jun 27 01:25:49 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2017/03/07 16:26:37 christos Exp $
+#	$NetBSD: Makefile,v 1.14 2018/06/27 01:25:49 kre Exp $
 
 .include 
 
@@ -6,6 +6,7 @@
 SUBDIR+= libgcc .WAIT
 SUBDIR+= libiberty libobjc libgomp
 SUBDIR+= libbacktrace
+SUBDIR+= liblsan
 SUBDIR+= liblto_plugin
 
 .if (${MKLIBSTDCXX} != "no") && (${MKCXX} != "no")



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

2018-06-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jun 26 21:06:45 UTC 2018

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

Log Message:
remove temp hack.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/external/gpl3/gcc/lib/liblsan/Makefile:1.2
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.1	Tue Jun 26 16:54:32 2018
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Tue Jun 26 17:06:45 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2018/06/26 20:54:32 christos Exp $
+# $NetBSD: Makefile,v 1.2 2018/06/26 21:06:45 christos Exp $
 
 .include 
 
@@ -8,7 +8,6 @@
 .PATH: ${SANITIZER}/lsan ${SANITIZER}/asan
 
 LSAN_SRCS+= \
-sanitizer_stoptheworld_linux_libcdep.cc \
 lsan.cc \
 lsan_allocator.cc \
 lsan_common.cc \



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

2018-06-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jun 26 20:54:32 UTC 2018

Added Files:
src/external/gpl3/gcc/lib/liblsan: Makefile shlib_version test-lsan.c

Log Message:
Add lsan support.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/liblsan/Makefile \
src/external/gpl3/gcc/lib/liblsan/shlib_version \
src/external/gpl3/gcc/lib/liblsan/test-lsan.c

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/liblsan/Makefile
diff -u /dev/null src/external/gpl3/gcc/lib/liblsan/Makefile:1.1
--- /dev/null	Tue Jun 26 16:54:32 2018
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Tue Jun 26 16:54:32 2018
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2018/06/26 20:54:32 christos Exp $
+
+.include 
+
+.include "../Makefile.inc"
+.include "../Makefile.sanitizer"
+
+.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan
+
+LSAN_SRCS+= \
+sanitizer_stoptheworld_linux_libcdep.cc \
+lsan.cc \
+lsan_allocator.cc \
+lsan_common.cc \
+lsan_common_linux.cc \
+lsan_interceptors.cc \
+lsan_preinit.cc \
+lsan_thread.cc
+
+
+LIB=	lsan
+SRCS+=	${LSAN_SRCS}
+LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+
+.include 
Index: src/external/gpl3/gcc/lib/liblsan/shlib_version
diff -u /dev/null src/external/gpl3/gcc/lib/liblsan/shlib_version:1.1
--- /dev/null	Tue Jun 26 16:54:32 2018
+++ src/external/gpl3/gcc/lib/liblsan/shlib_version	Tue Jun 26 16:54:32 2018
@@ -0,0 +1,2 @@
+major=1
+minor=0
Index: src/external/gpl3/gcc/lib/liblsan/test-lsan.c
diff -u /dev/null src/external/gpl3/gcc/lib/liblsan/test-lsan.c:1.1
--- /dev/null	Tue Jun 26 16:54:32 2018
+++ src/external/gpl3/gcc/lib/liblsan/test-lsan.c	Tue Jun 26 16:54:32 2018
@@ -0,0 +1,13 @@
+#include 
+#include 
+
+int
+main(void)
+{
+	int *a = malloc(7);
+
+	for (int i = 0; i < 10; i++)
+		a[i] = i;
+	printf("%d\n", a[6]);
+	return 0;
+}



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

2018-06-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun 11 15:29:33 UTC 2018

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

Log Message:
use LIBISCXX = yes, instead of hard-coding the c++ library. Suggested by joerg


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/external/gpl3/gcc/lib/libubsan/Makefile:1.7
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.6	Mon Jun 11 08:47:47 2018
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Mon Jun 11 11:29:33 2018
@@ -1,6 +1,7 @@
-#	$NetBSD: Makefile,v 1.6 2018/06/11 12:47:47 christos Exp $
+#	$NetBSD: Makefile,v 1.7 2018/06/11 15:29:33 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
+LIBISCXX = yes
 
 .include 
 
@@ -28,7 +29,6 @@ COPTS.${_s}.cc+=-frtti
 
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
-LIBDPLIBS+= stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
 .if ${MACHINE_ARCH} == "vax"



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

2018-06-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun 11 12:47:47 UTC 2018

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

Log Message:
Add libstdc++ again; needed for:
undefined reference to `typeinfo for __cxxabiv1::__class_type_info'
undefined reference to `typeinfo for __cxxabiv1::__si_class_type_info'
undefined reference to `typeinfo for __cxxabiv1::__vmi_class_type_info'
undefined reference to `typeinfo for std::type_info'
undefined reference to `__dynamic_cast'


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 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.5 src/external/gpl3/gcc/lib/libubsan/Makefile:1.6
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.5	Tue Feb 13 22:37:39 2018
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Mon Jun 11 08:47:47 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2018/02/14 03:37:39 christos Exp $
+#	$NetBSD: Makefile,v 1.6 2018/06/11 12:47:47 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 
@@ -28,6 +28,7 @@ COPTS.${_s}.cc+=-frtti
 
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
+LIBDPLIBS+= stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
 .if ${MACHINE_ARCH} == "vax"



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

2018-06-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jun  9 22:40:00 UTC 2018

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

Log Message:
don't depend on libstdc++


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.5
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.4	Tue Feb 13 21:12:07 2018
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sat Jun  9 18:40:00 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.4 2018/02/14 02:12:07 christos Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.5 2018/06/09 22:40:00 christos Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -70,7 +70,6 @@ CPPFLAGS+=-D__STDC_LIMIT_MACROS -DSANITI
 CPPFLAGS+=-DSANITIZER_NEEDS_SEGV=1
 #CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
-LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
 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/libasan

2018-06-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jun  9 22:39:29 UTC 2018

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

Log Message:
consistency, define to empty.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 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.23 src/external/gpl3/gcc/lib/libasan/Makefile:1.24
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.23	Fri Jun  1 21:38:41 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Sat Jun  9 18:39:29 2018
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2018/06/02 01:38:41 christos Exp $
+# $NetBSD: Makefile,v 1.24 2018/06/09 22:39:29 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
-NOSANITIZER=yes
+NOSANITIZER=	# defined
 
 .include 
 



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

2018-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jun  2 01:38:41 UTC 2018

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

Log Message:
Don't sanitize the sanitizer.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 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.22 src/external/gpl3/gcc/lib/libasan/Makefile:1.23
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.22	Mon Apr  2 18:35:26 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Fri Jun  1 21:38:41 2018
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2018/04/02 22:35:26 mrg Exp $
+# $NetBSD: Makefile,v 1.23 2018/06/02 01:38:41 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
+NOSANITIZER=yes
 
 .include 
 



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

2018-04-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Apr  7 22:17:52 UTC 2018

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

Log Message:
fix the grep pattern for inside a makefile.  fixes build issue
reported by thorpej on tech-toolchain - we both found the same
fix around the same time.

XXX: kamil says solaris-type hosts will fail here as they need
XXX: 'egrep' not 'grep -E'.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 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.32 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.33
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.32	Wed Feb  7 02:30:39 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Sat Apr  7 22:17:52 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.32 2018/02/07 02:30:39 mrg Exp $
+#	$NetBSD: Makefile,v 1.33 2018/04/07 22:17:52 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -21,7 +21,7 @@ COPTS.random.cc+=	${${ACTIVE_CC} == "cla
 .if ${MKPIC} != "no"
 libstdc++-symbols.ver:
 	cat ${DIST}/libstdc++-v3/config/abi/pre/gnu.ver ${G_port_specific_symbol_files} | \
-	${TOOL_GREP} -E -v '^[ ]*#(#| |$)' | \
+	${TOOL_GREP} -E -v '^[ ]*#(#| |$$)' | \
 	${CXX} -I${DESTDIR}/usr/include/g++ -E -P -include ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/c++config.h - > \
 	${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET} && rm -f ${.TARGET}.tmp
 



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

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 03:37:39 UTC 2018

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

Log Message:
need -lrt for shm_{open,close}


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/external/gpl3/gcc/lib/libubsan/Makefile:1.5
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.4	Sat Feb  3 20:16:33 2018
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Tue Feb 13 22:37:39 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2018/02/04 01:16:33 mrg Exp $
+#	$NetBSD: Makefile,v 1.5 2018/02/14 03:37:39 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 
@@ -28,6 +28,7 @@ COPTS.${_s}.cc+=-frtti
 
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
+LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS += -O1



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

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:12:36 UTC 2018

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

Log Message:
depend on librt for shm_{open,close}


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 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.20 src/external/gpl3/gcc/lib/libasan/Makefile:1.21
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.20	Tue Feb  6 21:32:39 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Tue Feb 13 21:12:35 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2018/02/07 02:32:39 mrg Exp $
+# $NetBSD: Makefile,v 1.21 2018/02/14 02:12:35 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 
@@ -37,6 +37,7 @@ asan_win_dynamic_runtime_thunk.cc
 
 LIB=	asan
 SRCS+=	${ASAN_SRCS}
+LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator.cc += -O1



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

2018-02-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 14 02:12:07 UTC 2018

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

Log Message:
Asan needs bits and pieces of ubsan now; go figure.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.4
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.3	Sat Feb  3 20:16:32 2018
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Tue Feb 13 21:12:07 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.3 2018/02/04 01:16:32 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.4 2018/02/14 02:12:07 christos Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -9,7 +9,7 @@ interception_mac.cc \
 interception_type_test.cc \
 interception_win.cc
 
-SANITIZER_SRCS= \
+SANITIZER_SRCS+= \
 sanitizer_allocator.cc \
 sanitizer_common.cc \
 sanitizer_common_libcdep.cc \
@@ -52,10 +52,17 @@ 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
+
 # The linux build does this to avoid preinit sections on shared libraries
 CSHLIBFLAGS+= -DPIC
 
-SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
+SRCS+=	${INTERCEPTION_SRCS} ${SANITIZER_SRCS} ${UBSAN_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



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

2018-02-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb  7 02:32:39 UTC 2018

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

Log Message:
some more/changed files need -O1 for vax.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 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.19 src/external/gpl3/gcc/lib/libasan/Makefile:1.20
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.19	Sun Feb  4 01:16:33 2018
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Wed Feb  7 02:32:39 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2018/02/04 01:16:33 mrg Exp $
+# $NetBSD: Makefile,v 1.20 2018/02/07 02:32:39 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 
@@ -39,8 +39,11 @@ LIB=	asan
 SRCS+=	${ASAN_SRCS}
 
 .if ${MACHINE_ARCH} == "vax"
-COPTS.asan_allocator2.cc += -O1
+COPTS.asan_allocator.cc += -O1
 COPTS.asan_report.cc += -O1
+COPTS.sanitizer_common.cc += -O1
+COPTS.sanitizer_common_libcdep.cc += -O1
+COPTS.sanitizer_posix.cc += -O1
 .endif
 
 .include 



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

2018-02-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb  7 02:30:39 UTC 2018

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

Log Message:
handle MKPICLIB=no builds.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 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.31 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.32
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.31	Sun Feb  4 01:16:33 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Wed Feb  7 02:30:39 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.31 2018/02/04 01:16:33 mrg Exp $
+#	$NetBSD: Makefile,v 1.32 2018/02/07 02:30:39 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -25,7 +25,11 @@ libstdc++-symbols.ver:
 	${CXX} -I${DESTDIR}/usr/include/g++ -E -P -include ${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/c++config.h - > \
 	${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET} && rm -f ${.TARGET}.tmp
 
+.if ${MKPICLIB} != "no"
 libstdc++_pic.a:: libstdc++-symbols.ver
+.else
+libstdc++.a:: libstdc++-symbols.ver
+.endif
 
 LDFLAGS+=	-Wl,-O1 \
 		-Wl,--gc-sections \



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

2018-02-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Feb  6 09:36:34 UTC 2018

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

Log Message:
regen for GCC 6.4 (no real change)


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.14 src/external/gpl3/gcc/lib/libiberty/defs.mk:1.15
--- src/external/gpl3/gcc/lib/libiberty/defs.mk:1.14	Mon Nov 13 07:21:20 2017
+++ src/external/gpl3/gcc/lib/libiberty/defs.mk	Tue Feb  6 09:36:34 2018
@@ -1,6 +1,6 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.90 2017/10/04 21:42:20 christos Exp 
-# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.92 2018/02/06 07:04:01 mrg Exp 
+# Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp 
 #
 G_ALLOCA=
 G_EXTRA_OFILES=



CVS commit: src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4

2018-02-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb  5 22:11:42 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4: gcov-iov.h

Log Message:
missing in previous:
mknative gcc 6.4 and powerpc / earmv4.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.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/libgcc/libgcov/arch/earmv4/gcov-iov.h
diff -u src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h:1.9 src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h:1.10
--- src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h:1.9	Mon Nov 13 07:21:17 2017
+++ src/external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h	Mon Feb  5 22:11:42 2018
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.90 2017/10/04 21:42:20 christos Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.91 2018/02/03 19:06:25 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp  */
 
 /* Generated automatically by the program `build/gcov-iov'
-   from `5.5.0 (5 5) and  (*)'.  */
+   from `6.4.0 (6 4) and  (*)'.  */
 
-#define GCOV_VERSION ((gcov_unsigned_t)0x3530352a)  /* 505* */
+#define GCOV_VERSION ((gcov_unsigned_t)0x3630342a)  /* 604* */



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

2018-02-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb  4 20:22:42 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64: c++config.h

Log Message:
regen mknative-gcc 6.4 and amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++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/x86_64/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h:1.26 src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h:1.27
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h:1.26	Sun Feb  4 01:17:45 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h	Sun Feb  4 20:22:42 2018
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.90 2017/10/04 21:42:20 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.91 2018/02/03 19:06:25 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp  */
 
 // Predefined symbols and macros -*- C++ -*-
@@ -610,31 +610,31 @@ namespace std
 /* config.h.in.  Generated from configure.ac by autoheader.  */
 
 /* Define to 1 if you have the `acosf' function. */
-#define _GLIBCXX_HAVE_ACOSF 1
+/* #undef _GLIBCXX_HAVE_ACOSF */
 
 /* Define to 1 if you have the `acosl' function. */
-#define _GLIBCXX_HAVE_ACOSL 1
+/* #undef _GLIBCXX_HAVE_ACOSL */
 
 /* Define to 1 if you have the `asinf' function. */
-#define _GLIBCXX_HAVE_ASINF 1
+/* #undef _GLIBCXX_HAVE_ASINF */
 
 /* Define to 1 if you have the `asinl' function. */
-#define _GLIBCXX_HAVE_ASINL 1
+/* #undef _GLIBCXX_HAVE_ASINL */
 
 /* Define to 1 if the target assembler supports .symver directive. */
 #define _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE 1
 
 /* Define to 1 if you have the `atan2f' function. */
-#define _GLIBCXX_HAVE_ATAN2F 1
+/* #undef _GLIBCXX_HAVE_ATAN2F */
 
 /* Define to 1 if you have the `atan2l' function. */
-#define _GLIBCXX_HAVE_ATAN2L 1
+/* #undef _GLIBCXX_HAVE_ATAN2L */
 
 /* Define to 1 if you have the `atanf' function. */
-#define _GLIBCXX_HAVE_ATANF 1
+/* #undef _GLIBCXX_HAVE_ATANF */
 
 /* Define to 1 if you have the `atanl' function. */
-#define _GLIBCXX_HAVE_ATANL 1
+/* #undef _GLIBCXX_HAVE_ATANL */
 
 /* Define to 1 if you have the `at_quick_exit' function. */
 #define _GLIBCXX_HAVE_AT_QUICK_EXIT 1
@@ -643,25 +643,25 @@ namespace std
 /* #undef _GLIBCXX_HAVE_CC_TLS */
 
 /* Define to 1 if you have the `ceilf' function. */
-#define _GLIBCXX_HAVE_CEILF 1
+/* #undef _GLIBCXX_HAVE_CEILF */
 
 /* Define to 1 if you have the `ceill' function. */
-#define _GLIBCXX_HAVE_CEILL 1
+/* #undef _GLIBCXX_HAVE_CEILL */
 
 /* Define to 1 if you have the  header file. */
 #define _GLIBCXX_HAVE_COMPLEX_H 1
 
 /* Define to 1 if you have the `cosf' function. */
-#define _GLIBCXX_HAVE_COSF 1
+/* #undef _GLIBCXX_HAVE_COSF */
 
 /* Define to 1 if you have the `coshf' function. */
-#define _GLIBCXX_HAVE_COSHF 1
+/* #undef _GLIBCXX_HAVE_COSHF */
 
 /* Define to 1 if you have the `coshl' function. */
-#define _GLIBCXX_HAVE_COSHL 1
+/* #undef _GLIBCXX_HAVE_COSHL */
 
 /* Define to 1 if you have the `cosl' function. */
-#define _GLIBCXX_HAVE_COSL 1
+/* #undef _GLIBCXX_HAVE_COSL */
 
 /* Define to 1 if you have the  header file. */
 #define _GLIBCXX_HAVE_DIRENT_H 1
@@ -733,16 +733,16 @@ namespace std
 #define _GLIBCXX_HAVE_EXECINFO_H 1
 
 /* Define to 1 if you have the `expf' function. */
-#define _GLIBCXX_HAVE_EXPF 1
+/* #undef _GLIBCXX_HAVE_EXPF */
 
 /* Define to 1 if you have the `expl' function. */
-#define _GLIBCXX_HAVE_EXPL 1
+/* #undef _GLIBCXX_HAVE_EXPL */
 
 /* Define to 1 if you have the `fabsf' function. */
-#define _GLIBCXX_HAVE_FABSF 1
+/* #undef _GLIBCXX_HAVE_FABSF */
 
 /* Define to 1 if you have the `fabsl' function. */
-#define _GLIBCXX_HAVE_FABSL 1
+/* #undef _GLIBCXX_HAVE_FABSL */
 
 /* Define to 1 if you have the  header file. */
 #define _GLIBCXX_HAVE_FCNTL_H 1
@@ -751,10 +751,10 @@ namespace std
 #define _GLIBCXX_HAVE_FENV_H 1
 
 /* Define to 1 if you have the `finite' function. */
-#define _GLIBCXX_HAVE_FINITE 1
+/* #undef _GLIBCXX_HAVE_FINITE */
 
 /* Define to 1 if you have the `finitef' function. */
-#define _GLIBCXX_HAVE_FINITEF 1
+/* #undef _GLIBCXX_HAVE_FINITEF */
 
 /* Define to 1 if you have the `finitel' function. */
 /* #undef _GLIBCXX_HAVE_FINITEL */
@@ -763,16 +763,16 @@ namespace std
 #define _GLIBCXX_HAVE_FLOAT_H 1
 
 /* Define to 1 if you have the `floorf' function. */
-#define _GLIBCXX_HAVE_FLOORF 1
+/* #undef _GLIBCXX_HAVE_FLOORF */
 
 /* Define to 1 if you have the `floorl' function. */
-#define _GLIBCXX_HAVE_FLOORL 1
+/* #undef _GLIBCXX_HAVE_FLOORL */
 
 /* Define to 1 if you have the `fmodf' function. */
-#define _GLIBCXX_HAVE_FMODF 1
+/* #undef _GLIBCXX_HAVE_FMODF */
 
 /* Define to 

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

2018-02-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb  4 01:16:33 UTC 2018

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libtsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
updates for GCC 6.4.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r1.3 -r1.4 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.2 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.3
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.2	Thu Jun  9 07:11:08 2016
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sun Feb  4 01:16:32 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.2 2016/06/09 07:11:08 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.3 2018/02/04 01:16:32 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -18,6 +18,7 @@ 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 \
@@ -43,11 +44,12 @@ 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_posix_libcdep.cc \
+sanitizer_unwind_linux_libcdep.cc \
 sanitizer_win.cc
 
 # The linux build does this to avoid preinit sections on shared libraries
@@ -58,7 +60,8 @@ CPPFLAGS+=-I${SANITIZER}/include -I${SAN
 CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
 CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 CPPFLAGS+=-D__STDC_LIMIT_MACROS -DSANITIZER_HAS_EXCEPTIONS=1
-CPPFLAGS+=-DSANITIZER_FLEXIBLE_MAPPING_AND_OFFSET=0 -DSANITIZER_NEEDS_SEGV=1
+CPPFLAGS+=-DSANITIZER_NEEDS_SEGV=1
+#CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.18 src/external/gpl3/gcc/lib/libasan/Makefile:1.19
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.18	Thu Jun 29 18:52:23 2017
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Sun Feb  4 01:16:33 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2017/06/29 18:52:23 joerg Exp $
+# $NetBSD: Makefile,v 1.19 2018/02/04 01:16:33 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 
@@ -11,8 +11,9 @@ UNSUPPORTED_COMPILER.clang=	# defined
 
 ASAN_SRCS= \
 asan_activation.cc \
-asan_allocator2.cc \
+asan_allocator.cc \
 asan_debugging.cc \
+asan_flags.cc \
 asan_fake_stack.cc \
 asan_globals.cc \
 asan_interceptors.cc \
@@ -28,6 +29,7 @@ asan_report.cc \
 asan_rtl.cc \
 asan_stack.cc \
 asan_stats.cc \
+asan_suppressions.cc \
 asan_thread.cc \
 asan_win.cc \
 asan_win_dll_thunk.cc \

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.30 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.31
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.30	Sat Feb  3 21:27:45 2018
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Sun Feb  4 01:16:33 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2018/02/03 21:27:45 mrg Exp $
+#	$NetBSD: Makefile,v 1.31 2018/02/04 01:16:33 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -170,7 +170,8 @@ COPTS.ext-inst.cc+= -Wno-error
 .for f in collate_members_cow \
 	  messages_members_cow \
   monetary_members_cow \
-	  numeric_members_cow
+	  numeric_members_cow \
+	  c++locale
 COPTS.${f}.cc+= -fimplicit-templates ${G_GLIBCXX_ABI_FLAGS}
 .endfor
 

Index: src/external/gpl3/gcc/lib/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.6 src/external/gpl3/gcc/lib/libtsan/Makefile:1.7
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.6	Tue Jan  9 01:51:20 2018
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Sun Feb  4 01:16:33 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2018/01/09 01:51:20 christos Exp $
+# $NetBSD: Makefile,v 1.7 2018/02/04 01:16:33 mrg Exp $
 
 .include 
 
@@ -17,12 +17,16 @@ tsan_interface.o \
 tsan_interface_ann.o \
 tsan_interface_atomic.o \
 tsan_interface_java.o \
+tsan_libdispatch_mac.o \

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

2018-01-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan  9 01:51:20 UTC 2018

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

Log Message:
Add one more file, still does not build.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 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.5 src/external/gpl3/gcc/lib/libtsan/Makefile:1.6
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.5	Sun Jun  5 16:08:26 2016
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Mon Jan  8 20:51:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2016/06/05 20:08:26 christos Exp $
+# $NetBSD: Makefile,v 1.6 2018/01/09 01:51:20 christos Exp $
 
 .include 
 
@@ -25,6 +25,7 @@ tsan_platform_linux.o \
 tsan_platform_mac.o \
 tsan_platform_windows.o \
 tsan_report.o \
+tsan_rtl_amd64.o \
 tsan_rtl.o \
 tsan_rtl_mutex.o \
 tsan_rtl_report.o \



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

2017-11-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Nov 14 00:55:29 UTC 2017

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

Log Message:
from gcc.old:
>it's ${BUILDINCS} not {BUILDINCS}


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/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/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile:1.18 src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile:1.19
--- src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile:1.18	Tue Mar 22 04:53:17 2016
+++ src/external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile	Tue Nov 14 00:55:29 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.18 2016/03/22 04:53:17 mrg Exp $
+#	$NetBSD: Makefile,v 1.19 2017/11/14 00:55:29 mrg Exp $
 
 .include 
 
@@ -29,7 +29,7 @@ INCSDIR=	/usr/include/g++/bits
 
 .include "${.CURDIR}/../Makefile.includes"
 
-CLEANFILES+=	{BUILDINCS}
+CLEANFILES+=	${BUILDINCS}
 
 CXXDIST=			${DIST}/libstdc++-v3
 COPYHEADERS= \



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

2017-11-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Nov 11 07:50:39 UTC 2017

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

Log Message:
Build liblto_plugin.so with safe-ctype.c

This corrects linking attempt with GNU binutils GOLD (linker).

ld.gold: error: /usr/libexec/liblto_plugin.so: \
could not load plugin library: /usr/libexec/liblto_plugin.so: \
Undefined symbol "_sch_istable" (symnum = 12)

Keep the same minor for the previous recent bump.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/liblto_plugin/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/liblto_plugin/Makefile
diff -u src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.7 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.8
--- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.7	Sun Nov  5 02:36:00 2017
+++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile	Sat Nov 11 07:50:39 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2017/11/05 02:36:00 kamil Exp $
+#	$NetBSD: Makefile,v 1.8 2017/11/11 07:50:39 kamil Exp $
 
 .include 
 .include 
@@ -11,7 +11,8 @@ GNUHOSTDIST=	${DIST}
 SRCS=		lto-plugin.c hashtab.c simple-object.c pex-unix.c \
 		pex-common.c argv.c make-temp-file.c concat.c \
 		simple-object-elf.c simple-object-mach-o.c \
-		simple-object-coff.c simple-object-xcoff.c xstrerror.c
+		simple-object-coff.c simple-object-xcoff.c xstrerror.c \
+		safe-ctype.c
 
 CPPFLAGS+=	-I${DIST}/include -I. 
 CPPFLAGS+=	-DHAVE_CONFIG_H



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

2017-11-04 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Nov  5 02:36:00 UTC 2017

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

Log Message:
Backport patch from gcc.old for liblto_plugin

Correct resolution of xstrerror(). Switch from -liberty (which has PIC
problems as a local library) to directly linking xstrerror.c with
liblto_plugin.

Fix in gcc.old by 

PR 52674 by myself


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/liblto_plugin/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/liblto_plugin/Makefile
diff -u src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.6 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.7
--- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.6	Sat Nov  4 16:21:49 2017
+++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile	Sun Nov  5 02:36:00 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2017/11/04 16:21:49 kamil Exp $
+#	$NetBSD: Makefile,v 1.7 2017/11/05 02:36:00 kamil Exp $
 
 .include 
 .include 
@@ -11,7 +11,7 @@ GNUHOSTDIST=	${DIST}
 SRCS=		lto-plugin.c hashtab.c simple-object.c pex-unix.c \
 		pex-common.c argv.c make-temp-file.c concat.c \
 		simple-object-elf.c simple-object-mach-o.c \
-		simple-object-coff.c simple-object-xcoff.c
+		simple-object-coff.c simple-object-xcoff.c xstrerror.c
 
 CPPFLAGS+=	-I${DIST}/include -I. 
 CPPFLAGS+=	-DHAVE_CONFIG_H
@@ -31,10 +31,6 @@ LIBDIR=		/usr/libexec
 SHLIB_MAJOR=	0
 SHLIB_MINOR=	1
 
-LIBIBERTYDIR!=	cd ${.CURDIR}/../../lib/libiberty && ${PRINTOBJDIR}
-LDADD+=		-L${LIBIBERTYDIR} -liberty
-DPADD+=		${LIBIBERTYDIR}/libiberty.a
-
 # Yuck, we have to run configure to generate this one...
 CLEANFILES+=	config.h
 HOST_CFLAGS+= -I${.OBJDIR}



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

2017-11-04 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Nov  4 16:03:12 UTC 2017

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

Log Message:
Link liblto_plugin with -liberty (gcc)

GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"):

ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \
-plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \
-plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \
-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \
/usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \
-lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \
/usr/lib/crtn.o

When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \
has missing symbol xstrerror:

ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \
/usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38)

>From Makefiles and sources inspection, liblto_plugin.so shall be linked with \
libiberty (-liberty), a utility GNU library for internal usage with helping \
functions.

PR 52674 by myself


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/liblto_plugin/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/liblto_plugin/Makefile
diff -u src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.4 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.5
--- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.4	Wed Apr 20 17:18:52 2016
+++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile	Sat Nov  4 16:03:12 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2016/04/20 17:18:52 christos Exp $
+#	$NetBSD: Makefile,v 1.5 2017/11/04 16:03:12 kamil Exp $
 
 .include 
 .include 
@@ -31,6 +31,10 @@ LIBDIR=		/usr/libexec
 SHLIB_MAJOR=	0
 SHLIB_MINOR=	0
 
+LIBIBERTYDIR!=	cd ${.CURDIR}/../../lib/libiberty && ${PRINTOBJDIR}
+LDADD+=		-L${LIBIBERTYDIR} -liberty
+DPADD+=		${LIBIBERTYDIR}/libiberty.a
+
 # Yuck, we have to run configure to generate this one...
 CLEANFILES+=	config.h
 HOST_CFLAGS+= -I${.OBJDIR}



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

2017-10-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct  6 19:16:35 UTC 2017

Modified Files:
src/external/gpl3/gcc/lib/libasan: shlib_version
src/external/gpl3/gcc/lib/libubsan: shlib_version

Log Message:
bump because of libstdc++


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libasan/shlib_version
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libubsan/shlib_version

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/shlib_version
diff -u src/external/gpl3/gcc/lib/libasan/shlib_version:1.2 src/external/gpl3/gcc/lib/libasan/shlib_version:1.3
--- src/external/gpl3/gcc/lib/libasan/shlib_version:1.2	Tue May 31 16:47:52 2016
+++ src/external/gpl3/gcc/lib/libasan/shlib_version	Fri Oct  6 15:16:35 2017
@@ -1,2 +1,2 @@
-major=1
+major=2
 minor=0

Index: src/external/gpl3/gcc/lib/libubsan/shlib_version
diff -u src/external/gpl3/gcc/lib/libubsan/shlib_version:1.1 src/external/gpl3/gcc/lib/libubsan/shlib_version:1.2
--- src/external/gpl3/gcc/lib/libubsan/shlib_version:1.1	Wed Jun  1 18:48:55 2016
+++ src/external/gpl3/gcc/lib/libubsan/shlib_version	Fri Oct  6 15:16:35 2017
@@ -1,2 +1,2 @@
-major=0
+major=1
 minor=0



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

2017-06-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jun 29 18:52:23 UTC 2017

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

Log Message:
Mark a few more things as not-for-clang. While the sanitizers would
likely build, there are ordering issues relative to the libc++ build
right now.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.2 -r1.3 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.17 src/external/gpl3/gcc/lib/libasan/Makefile:1.18
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.17	Thu Jun  9 07:11:08 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Thu Jun 29 18:52:23 2017
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2016/06/09 07:11:08 mrg Exp $
+# $NetBSD: Makefile,v 1.18 2017/06/29 18:52:23 joerg Exp $
+
+UNSUPPORTED_COMPILER.clang=	# defined
 
 .include 
 

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.26 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.27
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.26	Sun Jan 15 21:27:38 2017
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Thu Jun 29 18:52:23 2017
@@ -1,7 +1,8 @@
-#	$NetBSD: Makefile,v 1.26 2017/01/15 21:27:38 christos Exp $
+#	$NetBSD: Makefile,v 1.27 2017/06/29 18:52:23 joerg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
+UNSUPPORTED_COMPILER.clang=	# defined
 
 .include 
 

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.2 src/external/gpl3/gcc/lib/libubsan/Makefile:1.3
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.2	Thu Jun  9 07:11:08 2016
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Thu Jun 29 18:52:23 2017
@@ -1,4 +1,7 @@
-#	$NetBSD: Makefile,v 1.2 2016/06/09 07:11:08 mrg Exp $
+#	$NetBSD: Makefile,v 1.3 2017/06/29 18:52:23 joerg Exp $
+
+UNSUPPORTED_COMPILER.clang=	# defined
+
 .include 
 
 .include "../Makefile.inc"



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

2017-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar  7 16:26:37 UTC 2017

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

Log Message:
need .WAIT before *san since they depend on libc++


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 src/external/gpl3/gcc/lib/Makefile:1.13
--- src/external/gpl3/gcc/lib/Makefile:1.12	Sat Jun  4 21:17:57 2016
+++ src/external/gpl3/gcc/lib/Makefile	Tue Mar  7 11:26:37 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2016/06/05 01:17:57 christos Exp $
+#	$NetBSD: Makefile,v 1.13 2017/03/07 16:26:37 christos Exp $
 
 .include 
 
@@ -12,6 +12,6 @@ SUBDIR+= liblto_plugin
 SUBDIR+= libsupc++ libstdc++-v3
 .endif
 
-SUBDIR+= libasan libubsan
+SUBDIR+= .WAIT libasan libubsan
 
 .include 



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

2017-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 15 21:27:38 UTC 2017

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

Log Message:
elide psabi errors on i386


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 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.25 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.26
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.25	Thu Jan 12 20:14:27 2017
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Sun Jan 15 16:27:38 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2017/01/13 01:14:27 christos Exp $
+#	$NetBSD: Makefile,v 1.26 2017/01/15 21:27:38 christos Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -79,6 +79,11 @@ CPPFLAGS.compatibility-parallel_list.cc 
 
 cp-demangle.d cp-demangle.o: cp-demangle.h
 
+.if ${MACHINE_ARCH} == "i386"
+COPTS.random.cc += -Wno-error=psabi
+COPTS.cow-string-inst.cc += -Wno-error=psabi
+.endif
+
 # XXX
 MKDEPFLAGS+=	-I$(GLIBCPP_INCLUDE_DIR)/backward
 



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

2016-10-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 22 20:33:28 UTC 2016

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

Log Message:
use LIBGCC_MACHINE_ARCH for the compat build


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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.34 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.35
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.34	Fri Oct 21 23:55:03 2016
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sat Oct 22 16:33:28 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.34 2016/10/22 03:55:03 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.35 2016/10/22 20:33:28 christos Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -22,7 +22,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 ${MACHINE_ARCH} == "x86_64"
+.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
 CPPFLAGS+=	-I${DIST}/libgcc/config/i386
 .else
 CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}



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

2016-10-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 22 03:55:03 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc
src/external/gpl3/gcc/lib/libgcc/arch/i386: defs.mk
src/external/gpl3/gcc/lib/libgcc/arch/x86_64: defs.mk

Log Message:
regen and include the proper directory for x86_64


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/external/gpl3/gcc/lib/libgcc/Makefile.inc
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/lib/libgcc/arch/x86_64/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/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.33 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.34
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.33	Tue Mar 22 04:18:27 2016
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Fri Oct 21 23:55:03 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.33 2016/03/22 08:18:27 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.34 2016/10/22 03:55:03 christos Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -22,7 +22,11 @@ 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
-CPPFLAGS+=	-I${DIST}/libgcc/config/${MACHINE_CPU}
+.if ${MACHINE_ARCH} == "x86_64"
+CPPFLAGS+=	-I${DIST}/libgcc/config/i386
+.else
+CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
+.endif
 CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
 
 .if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \

Index: src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk:1.3 src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk:1.4
--- src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk:1.3	Wed Mar 16 06:56:20 2016
+++ src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk	Fri Oct 21 23:55:03 2016
@@ -1,9 +1,9 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.85 2016/03/15 21:38:32 mrg Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.89 2016/10/05 19:25:49 christos Exp 
 # Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
-G_LIB2ADD= ${GNUHOSTDIST}/libgcc/config/i386/cpuinfo.c enable-execute-stack.c
+G_LIB2ADD= ${GNUHOSTDIST}/libgcc/config/i386/cpuinfo.c ${GNUHOSTDIST}/libgcc/config/i386/32/tf-signs.c ${GNUHOSTDIST}/libgcc/config/i386/sfp-exceptions.c ${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/extendxftf2.c ${GNUHOSTDIST}/libgcc/s
 oft-fp/trunctfsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfdf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfxf2.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=

Index: src/external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk:1.2 src/external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk:1.3
--- src/external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk:1.2	Wed Mar 16 01:29:39 2016
+++ src/external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk	Fri Oct 21 23:55:03 2016
@@ -1,9 +1,9 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.85 2016/03/15 21:38:32 mrg Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.89 2016/10/05 19:25:49 christos Exp 
 # Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
-G_LIB2ADD= ${GNUHOSTDIST}/libgcc/config/i386/cpuinfo.c enable-execute-stack.c
+G_LIB2ADD= ${GNUHOSTDIST}/libgcc/config/i386/cpuinfo.c 

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

2016-10-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 21 23:44:09 UTC 2016

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

Log Message:
Mark this -z nodelete, so that it does not get unloaded before other shared
libraries do, since they destructors need to still call millicode.
The problem this time was with /usr/pkg/bin/gdk-pixbuf-query-loaders
calling glib2's g_log...


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libgcc/libgcc_s/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/libgcc_s/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.13 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.14
--- src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.13	Wed Mar 23 01:28:01 2016
+++ src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile	Fri Oct 21 19:44:09 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2016/03/23 05:28:01 mrg Exp $
+#	$NetBSD: Makefile,v 1.14 2016/10/21 23:44:09 christos Exp $
 
 USE_SHLIBDIR=	yes
 REQUIRETOOLS=	yes
@@ -19,7 +19,7 @@ NOPICINSTALL=	# defined
 SHLIB_MAJOR=	1
 SHLIB_MINOR=	0
 
-LDFLAGS+=	-nodefaultlibs
+LDFLAGS+=	-nodefaultlibs -Wl,-z -Wl,nodelete
 LDFLAGS+=	-Wl,--version-script=${.OBJDIR}/libgcc.map
 
 # XXX handle this better?  GCC 4.8 moved them.



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

2016-10-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct  5 14:16:56 UTC 2016

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

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libgcc/arch/mips64el/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/mips64el/defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/mips64el/defs.mk:1.3 src/external/gpl3/gcc/lib/libgcc/arch/mips64el/defs.mk:1.4
--- src/external/gpl3/gcc/lib/libgcc/arch/mips64el/defs.mk:1.3	Tue Mar 22 02:54:18 2016
+++ src/external/gpl3/gcc/lib/libgcc/arch/mips64el/defs.mk	Wed Oct  5 10:16:56 2016
@@ -3,7 +3,6 @@
 # Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
-G_LIB2ADD= ${GNUHOSTDIST}/libgcc/soft-fp/addsf3.c ${GNUHOSTDIST}/libgcc/soft-fp/divsf3.c ${GNUHOSTDIST}/libgcc/soft-fp/eqsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/gesf2.c ${GNUHOSTDIST}/libgcc/soft-fp/lesf2.c ${GNUHOSTDIST}/libgcc/soft-fp/mulsf3.c ${GNUHOSTDIST}/libgcc/soft-fp/negsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/subsf3.c ${GNUHOSTDIST}/libgcc/soft-fp/unordsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/fixsfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunssfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatsisf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatunsisf.c ${GNUHOSTDIST}/libgcc/soft-fp/fixsfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunssfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatdisf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatundisf.c ${GNUHOSTDIST}/libgcc/soft-fp/fixsfti.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunssfti.c ${GNUHOSTDIST}/libgcc/soft-fp/floattisf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatuntisf.c ${GNUHOSTDIST}/libgcc/soft-fp/adddf3.c ${GNUHOSTDIST}/libgcc/soft-fp/divdf3.c ${GNUHOSTDIST}/libgcc/soft-fp/eqdf2.c ${GNUHOSTDIST
 }/libgcc/soft-fp/gedf2.c ${GNUHOSTDIST}/libgcc/soft-fp/ledf2.c ${GNUHOSTDIST}/libgcc/soft-fp/muldf3.c ${GNUHOSTDIST}/libgcc/soft-fp/negdf2.c ${GNUHOSTDIST}/libgcc/soft-fp/subdf3.c ${GNUHOSTDIST}/libgcc/soft-fp/unorddf2.c ${GNUHOSTDIST}/libgcc/soft-fp/fixdfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunsdfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatsidf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatunsidf.c ${GNUHOSTDIST}/libgcc/soft-fp/fixdfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunsdfdi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatdidf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatundidf.c ${GNUHOSTDIST}/libgcc/soft-fp/fixdfti.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunsdfti.c ${GNUHOSTDIST}/libgcc/soft-fp/floattidf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatuntidf.c ${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/fixtfti.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunstfti.c ${GNUHOSTDIST}/libgcc/soft-fp/floattitf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatuntitf.c ${GNUHOSTDIST}/libgcc/soft-fp/extendsfdf2.c ${GNUHOSTDIST}/libgcc/soft-fp/extendsftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/extenddftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/truncdfsf2.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= ${GNUHOSTDIST}/libgcc/config/mips/lib2funcs.c
 G_LIB1ASMFUNCS=
@@ -16,6 +15,7 @@ G_SHLIB_MKMAP=${GNUHOSTDIST}/libgcc/mkma
 G_SHLIB_MKMAP_OPTS=
 G_SHLIB_MAPFILES=libgcc-std.ver
 G_SHLIB_NM_FLAGS=-pg
+G_LIB2ADD=enable-execute-stack.c
 G_NOEXCEPTION_FLAGS=-fno-exceptions -fno-rtti -fasynchronous-unwind-tables
 G_EXTRA_HEADERS=${GNUHOSTDIST}/gcc/config/mips/loongson.h ${GNUHOSTDIST}/gcc/ginclude/tgmath.h
 G_CONFIGLINKS=${GNUHOSTDIST}/libgcc/enable-execute-stack-mprotect.c  enable-execute-stack.c ${GNUHOSTDIST}/libgcc/unwind-generic.h  unwind.h ${GNUHOSTDIST}/libgcc/config/no-unwind.h  md-unwind-support.h ${GNUHOSTDIST}/libgcc/config/mips/sfp-machine.h  sfp-machine.h ${GNUHOSTDIST}/libgcc/gthr-posix.h  gthr-default.h 



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

2016-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 02:03:16 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000: defs.mk

Log Message:
XXX: manually add uniform_int_dist.h because everyone else has it and
it breaks the build!


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/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/libstdc++-v3/arch/m68000/defs.mk
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/defs.mk:1.4 src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/defs.mk:1.5
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/defs.mk:1.4	Tue Mar 22 04:15:25 2016
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/defs.mk	Sat Sep 17 22:03:16 2016
@@ -37,7 +37,7 @@ G_pb_headers4=ext/pb_ds/detail/hash_fn/s
 G_pb_headers5=ext/pb_ds/detail/ov_tree_map_/policy_access_fn_imps.hpp ext/pb_ds/detail/ov_tree_map_/split_join_fn_imps.hpp ext/pb_ds/detail/ov_tree_map_/traits.hpp ext/pb_ds/detail/pairing_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/debug_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/erase_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/find_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/insert_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp ext/pb_ds/detail/pairing_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/pat_trie_/debug_fn_imps.hpp ext/pb_ds/detail/pat_trie_/erase_fn_imps.hpp ext/pb_ds/detail/pat_trie_/find_fn_imps.hpp ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp ext/pb_ds/detail/pat_trie_/insert_join_fn_imps.hpp ext/pb_ds/detail/pat_trie_/iterators_fn_imps.hpp ext/pb_ds/detail/pat_trie_/pat_trie_.hpp ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp ext/pb_ds/detail/pat_trie_/policy_access
 _fn_imps.hpp ext/pb_ds/detail/pat_trie_/r_erase_fn_imps.hpp ext/pb_ds/detail/pat_trie_/rotate_fn_imps.hpp ext/pb_ds/detail/pat_trie_/split_fn_imps.hpp ext/pb_ds/detail/pat_trie_/synth_access_traits.hpp ext/pb_ds/detail/pat_trie_/trace_fn_imps.hpp ext/pb_ds/detail/pat_trie_/traits.hpp ext/pb_ds/detail/pat_trie_/update_fn_imps.hpp ext/pb_ds/detail/priority_queue_base_dispatch.hpp ext/pb_ds/detail/rb_tree_map_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/debug_fn_imps.hpp
 G_pb_headers6=ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/find_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/info_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/insert_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/node.hpp ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp ext/pb_ds/detail/rb_tree_map_/split_join_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/traits.hpp ext/pb_ds/detail/rc_binomial_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/debug_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/erase_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/insert_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/rc_binomial_heap_.hpp ext/pb_ds/detail/rc_binomial_heap_/rc.hpp ext/pb_ds/detail/rc_binomial_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/trace_fn_imps.hpp ext/pb_ds/detail/resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp ext/pb_ds/detail/resize_policy/hash_exponential_size_policy_imp.hpp ext/pb_ds/detail/resize_p
 olicy/hash_load_check_resize_trigger_imp.hpp ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_size_base.hpp ext/pb_ds/detail/resize_policy/hash_prime_size_policy_imp.hpp ext/pb_ds/detail/resize_policy/hash_standard_resize_policy_imp.hpp ext/pb_ds/detail/resize_policy/sample_resize_policy.hpp ext/pb_ds/detail/resize_policy/sample_resize_trigger.hpp ext/pb_ds/detail/resize_policy/sample_size_policy.hpp ext/pb_ds/detail/splay_tree_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/splay_tree_/debug_fn_imps.hpp ext/pb_ds/detail/splay_tree_/erase_fn_imps.hpp ext/pb_ds/detail/splay_tree_/find_fn_imps.hpp ext/pb_ds/detail/splay_tree_/info_fn_imps.hpp ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp ext/pb_ds/detail/splay_tree_/node.hpp ext/pb_ds/detail/splay_tree_/splay_fn_imps.hpp ext/pb_ds/detail/splay_tree_/splay_tree_.hpp ext/pb_ds/detail/splay_tree_/split_join_fn_imps.hpp ext/pb_ds/detail/splay_tree_/traits.hpp ext/pb_ds/detail/standard_policies.hpp ext/pb_ds/detail/thi
 n_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/thin_heap_/debug_fn_imps.hpp ext/pb_ds/detail/thin_heap_/erase_fn_imps.hpp
 G_pb_headers7=ext/pb_ds/detail/thin_heap_/find_fn_imps.hpp ext/pb_ds/detail/thin_heap_/insert_fn_imps.hpp ext/pb_ds/detail/thin_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/thin_heap_/thin_heap_.hpp ext/pb_ds/detail/thin_heap_/trace_fn_imps.hpp ext/pb_ds/detail/tree_policy/node_metadata_selector.hpp ext/pb_ds/detail/tree_policy/order_statistics_imp.hpp 

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

2016-08-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Aug 25 13:17:09 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb: defs.mk

Log Message:
XXX stop gap fix for atomicity.
U __gnu_cxx::__atomic_add(int volatile*, int)
U __gnu_cxx::__exchange_and_add(int volatile*, int)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/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/libstdc++-v3/arch/sh3eb/defs.mk
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/defs.mk:1.5 src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/defs.mk:1.6
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/defs.mk:1.5	Tue Jun  7 14:53:11 2016
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/defs.mk	Thu Aug 25 09:17:09 2016
@@ -10,7 +10,7 @@ G_SRC_SOURCES=compatibility.cc compatibi
 G_CPP11_SOURCES=chrono.cc c11-codecvt.cc condition_variable.cc cow-stdexcept.cc ctype.cc debug.cc functexcept.cc functional.cc futex.cc future.cc hash_c++0x.cc hashtable_c++0x.cc ios.cc limits.cc mutex.cc placeholders.cc random.cc regex.cc shared_ptr.cc snprintf_lite.cc system_error.cc thread.cc cow-locale_init.cc cow-shim_facets.cc cxx11-hash_tr1.cc cxx11-ios_failure.cc cxx11-shim_facets.cc cxx11-stdexcept.cc ctype_configure_char.cc ctype_members.cc  cow-fstream-inst.cc cow-sstream-inst.cc cow-string-inst.cc cow-wstring-inst.cc cxx11-locale-inst.cc cxx11-wlocale-inst.cc ext11-inst.cc fstream-inst.cc ios-inst.cc iostream-inst.cc istream-inst.cc locale-inst.cc ostream-inst.cc sstream-inst.cc streambuf-inst.cc string-inst.cc wlocale-inst.cc wstring-inst.cc
 G_GLIBCXX_ABI_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
 G_CPP98_SOURCES=bitmap_allocator.cc pool_allocator.cc mt_allocator.cc c98-codecvt.cc complex_io.cc globals_io.cc hash_tr1.cc hashtable_tr1.cc ios_failure.cc ios_init.cc ios_locale.cc list.cc list-aux.cc list-aux-2.cc list_associated.cc list_associated-2.cc locale.cc locale_init.cc locale_facets.cc localename.cc math_stubs_float.cc math_stubs_long_double.cc stdexcept.cc strstream.cc tree.cc istream.cc istream-string.cc streambuf.cc valarray.cc cow-istream-string.cc collate_members_cow.cc messages_members_cow.cc monetary_members_cow.cc numeric_members_cow.cc atomicity.cc codecvt_members.cc collate_members.cc messages_members.cc monetary_members.cc numeric_members.cc time_members.cc basic_file.cc c++locale.cc allocator-inst.cc concept-inst.cc ext-inst.cc misc-inst.cc parallel_settings.cc
-G_ATOMICITY_SRCDIR=config/cpu/sh
+G_ATOMICITY_SRCDIR=config/cpu/generic/atomicity_mutex
 G_BASIC_FILE_CC=config/io/basic_file_stdio.cc
 G_CLOCALE_CC=config/locale/generic/c_locale.cc
 G_CCODECVT_CC=config/locale/generic/codecvt_members.cc



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

2016-06-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jun  9 07:11:08 UTC 2016

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

Log Message:
apply -O1 more liberally for vax.  fixes build.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.1 -r1.2 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.1 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.2
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.1	Wed Jun  1 22:48:55 2016
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Thu Jun  9 07:11:08 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.1 2016/06/01 22:48:55 christos Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.2 2016/06/09 07:11:08 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -69,8 +69,14 @@ COPTS+=-fno-builtin -fno-exceptions -fno
 #-fomit-frame-pointer
 
 .if ${MACHINE_ARCH} == "vax"
+COPTS.sanitizer_allocator.cc += -O1
+COPTS.sanitizer_coverage_libcdep.cc += -O1
+COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1
+COPTS.sanitizer_deadlock_detector1.cc += -O1
 COPTS.sanitizer_mac.cc += -O1
 COPTS.sanitizer_netbsd.cc += -O1
 COPTS.sanitizer_printf.cc += -O1
+COPTS.sanitizer_procmaps_common.cc += -O1
 COPTS.sanitizer_stackdepot.cc += -O1
+COPTS.sanitizer_symbolizer_libcdep.cc += -O1
 .endif

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.16 src/external/gpl3/gcc/lib/libasan/Makefile:1.17
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.16	Wed Jun  1 22:48:55 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Thu Jun  9 07:11:08 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2016/06/01 22:48:55 christos Exp $
+# $NetBSD: Makefile,v 1.17 2016/06/09 07:11:08 mrg Exp $
 
 .include 
 
@@ -36,6 +36,7 @@ SRCS+=	${ASAN_SRCS}
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator2.cc += -O1
+COPTS.asan_report.cc += -O1
 .endif
 
 .include 

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.1 src/external/gpl3/gcc/lib/libubsan/Makefile:1.2
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.1	Wed Jun  1 22:48:55 2016
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Thu Jun  9 07:11:08 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2016/06/01 22:48:55 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2016/06/09 07:11:08 mrg Exp $
 .include 
 
 .include "../Makefile.inc"
@@ -7,17 +7,21 @@
 .PATH: ${SANITIZER}/ubsan
 
 UBSAN_SRCS= \
-ubsan_diag.o \
-ubsan_flags.o \
-ubsan_handlers.o \
-ubsan_handlers_cxx.o \
-ubsan_init.o \
-ubsan_type_hash.o \
-ubsan_value.o
+	ubsan_diag.o \
+	ubsan_flags.o \
+	ubsan_handlers.o \
+	ubsan_handlers_cxx.o \
+	ubsan_init.o \
+	ubsan_type_hash.o \
+	ubsan_value.o
 
 COPTS.ubsan_type_hash.cc+=-frtti
 
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS += -O1
+.endif
+
 .include 



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

2016-06-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  5 20:08:26 UTC 2016

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

Log Message:
add glue for unimplemented platforms


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r0 -r1.1 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.4 src/external/gpl3/gcc/lib/libtsan/Makefile:1.5
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.4	Wed Jun  1 18:48:55 2016
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Sun Jun  5 16:08:26 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/06/01 22:48:55 christos Exp $
+# $NetBSD: Makefile,v 1.5 2016/06/05 20:08:26 christos Exp $
 
 .include 
 
@@ -35,6 +35,12 @@ tsan_suppressions.o \
 tsan_symbolize.o \
 tsan_sync.o
 
+.if exists(${SANITIZER}/tsan/tsan_rtl_${MACHINE}.S)
+TSAN_SRCS+= tsan_rtl_${MACHINE}.S
+.else
+TSAN_SRCS+= tsan_rtl_unimpl.cc
+.endif
+
 LIB=	tsan
 SRCS+=	${TSAN_SRCS}
 

Added files:

Index: src/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc
diff -u /dev/null src/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc:1.1
--- /dev/null	Sun Jun  5 16:08:26 2016
+++ src/external/gpl3/gcc/lib/libtsan/tsan_rtl_unimpl.cc	Sun Jun  5 16:08:26 2016
@@ -0,0 +1,4 @@
+#include 
+
+extern "C" void __tsan_report_race_thunk(void) { abort(); }
+extern "C" void __tsan_trace_switch_thunk(void) { abort(); }



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

2016-06-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  5 01:17:57 UTC 2016

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

Log Message:
add ubsan to the build


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 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.11 src/external/gpl3/gcc/lib/Makefile:1.12
--- src/external/gpl3/gcc/lib/Makefile:1.11	Wed Jun  1 13:07:13 2016
+++ src/external/gpl3/gcc/lib/Makefile	Sat Jun  4 21:17:57 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2016/06/01 17:07:13 christos Exp $
+#	$NetBSD: Makefile,v 1.12 2016/06/05 01:17:57 christos Exp $
 
 .include 
 
@@ -12,6 +12,6 @@ SUBDIR+= liblto_plugin
 SUBDIR+= libsupc++ libstdc++-v3
 .endif
 
-SUBDIR+= libasan
+SUBDIR+= libasan libubsan
 
 .include 



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

2016-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun  1 17:07:13 UTC 2016

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

Log Message:
Put back asan now it works.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 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.10 src/external/gpl3/gcc/lib/Makefile:1.11
--- src/external/gpl3/gcc/lib/Makefile:1.10	Wed Mar 16 01:41:47 2016
+++ src/external/gpl3/gcc/lib/Makefile	Wed Jun  1 13:07:13 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2016/03/16 05:41:47 mrg Exp $
+#	$NetBSD: Makefile,v 1.11 2016/06/01 17:07:13 christos Exp $
 
 .include 
 
@@ -12,7 +12,6 @@ SUBDIR+= liblto_plugin
 SUBDIR+= libsupc++ libstdc++-v3
 .endif
 
-# XXX GCC5
-#SUBDIR+= libasan
+SUBDIR+= libasan
 
 .include 



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

2016-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun  1 22:48:55 UTC 2016

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

Log Message:
Add ubsan (not enabled, not tested, compiling)
Update tsan (not enable, not tested, not compiling)
Merge common infrastructure.
XXX: Perhaps the common code should be made into a separate library?
Or always require asan?


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/libtsan/Makefile
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libubsan/Makefile \
src/external/gpl3/gcc/lib/libubsan/shlib_version

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.15 src/external/gpl3/gcc/lib/libasan/Makefile:1.16
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.15	Wed Jun  1 00:20:20 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Wed Jun  1 18:48:55 2016
@@ -1,10 +1,11 @@
+# $NetBSD: Makefile,v 1.16 2016/06/01 22:48:55 christos Exp $
 
 .include 
 
 .include "../Makefile.inc"
+.include "../Makefile.sanitizer"
 
-ASAN=${GCCDIST}/libsanitizer
-.PATH: ${ASAN}/asan ${ASAN}/interception ${ASAN}/sanitizer_common
+.PATH: ${SANITIZER}/asan
 
 ASAN_SRCS= \
 asan_activation.cc \
@@ -30,75 +31,11 @@ asan_win.cc \
 asan_win_dll_thunk.cc \
 asan_win_dynamic_runtime_thunk.cc
 
-INTERCEPTION_SRCS= \
-interception_linux.cc \
-interception_mac.cc \
-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_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_posix_libcdep.cc \
-sanitizer_symbolizer_win.cc \
-sanitizer_thread_registry.cc \
-sanitizer_tls_get_addr.cc \
-sanitizer_unwind_posix_libcdep.cc \
-sanitizer_win.cc
-
-# The linux build does this to avoid preinit sections on shared libraries
-CSHLIBFLAGS+= -DPIC
-
 LIB=	asan
-SRCS=	${ASAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
-CPPFLAGS+=-I${ASAN}/include -I${ASAN}
-CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
-CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 -DASAN_NEEDS_SEGV=1
-
-LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
-LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread
-COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
-COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables
-# Can't profile without it`
-#-fomit-frame-pointer
+SRCS+=	${ASAN_SRCS}
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator2.cc += -O1
-COPTS.sanitizer_mac.cc += -O1
-COPTS.sanitizer_netbsd.cc += -O1
-COPTS.sanitizer_printf.cc += -O1
-COPTS.sanitizer_stackdepot.cc += -O1
 .endif
 
 .include 

Index: src/external/gpl3/gcc/lib/libtsan/Makefile
diff -u src/external/gpl3/gcc/lib/libtsan/Makefile:1.3 src/external/gpl3/gcc/lib/libtsan/Makefile:1.4
--- src/external/gpl3/gcc/lib/libtsan/Makefile:1.3	Tue Jan  5 08:07:46 2016
+++ src/external/gpl3/gcc/lib/libtsan/Makefile	Wed Jun  1 18:48:55 2016
@@ -1,67 +1,41 @@
-# $NetBSD: Makefile,v 1.3 2016/01/05 13:07:46 christos Exp $
+# $NetBSD: Makefile,v 1.4 2016/06/01 22:48:55 christos Exp $
 
 .include 
 
 .include "../Makefile.inc"
+.include "../Makefile.sanitizer"
 
-TSAN=${GCCDIST}/libsanitizer
-.PATH: ${TSAN}/tsan ${TSAN}/interception ${TSAN}/sanitizer_common
+.PATH: ${SANITIZER}/tsan
 
 TSAN_SRCS= \
-	tsan_clock.cc  \
-	tsan_fd.cc  \
-	tsan_flags.cc  \
-	tsan_interceptors.cc  \
-	tsan_interface.cc  \
-	tsan_interface_ann.cc  \
-	tsan_interface_atomic.cc  \
-	tsan_interface_java.cc  \
-	tsan_md5.cc  \
-	tsan_mman.cc  \
-	

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

2016-05-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun  1 04:20:20 UTC 2016

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

Log Message:
missing space


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 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.14 src/external/gpl3/gcc/lib/libasan/Makefile:1.15
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.14	Tue May 31 20:54:20 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Wed Jun  1 00:20:20 2016
@@ -89,7 +89,7 @@ CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MAC
 LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread
 COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
-COPTS+=-fno-builtin -fno-exceptions -fno-rtti-funwind-tables
+COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables
 # Can't profile without it`
 #-fomit-frame-pointer
 



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

2016-05-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun  1 00:54:20 UTC 2016

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

Log Message:
more flags.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 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.13 src/external/gpl3/gcc/lib/libasan/Makefile:1.14
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.13	Tue May 31 17:34:13 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Tue May 31 20:54:20 2016
@@ -89,6 +89,9 @@ CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MAC
 LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread
 COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
+COPTS+=-fno-builtin -fno-exceptions -fno-rtti-funwind-tables
+# Can't profile without it`
+#-fomit-frame-pointer
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator2.cc += -O1



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

2016-05-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 31 21:34:13 UTC 2016

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

Log Message:
Add procmaps for NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 src/external/gpl3/gcc/lib/libasan/Makefile:1.13
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.12	Tue May 31 16:47:52 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Tue May 31 17:34:13 2016
@@ -57,6 +57,7 @@ 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 \



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

2016-05-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 31 20:47:52 UTC 2016

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

Log Message:
Update sources and flags (compiles but missing stuff)


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

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.11 src/external/gpl3/gcc/lib/libasan/Makefile:1.12
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.11	Wed Mar 23 17:24:53 2016
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Tue May 31 16:47:52 2016
@@ -7,40 +7,74 @@ ASAN=${GCCDIST}/libsanitizer
 .PATH: ${ASAN}/asan ${ASAN}/interception ${ASAN}/sanitizer_common
 
 ASAN_SRCS= \
-	asan_allocator2.cc \
-	asan_interceptors.cc \
-	asan_posix.cc \
-	asan_new_delete.cc \
-	asan_rtl.cc \
-	asan_stats.cc \
-	asan_globals.cc \
-	asan_fake_stack.cc \
-	asan_linux.cc \
-	asan_report.cc \
-	asan_malloc_linux.cc \
-	asan_poisoning.cc \
-	asan_stack.cc \
-	asan_thread.cc \
-	asan_preinit.cc
+asan_activation.cc \
+asan_allocator2.cc \
+asan_debugging.cc \
+asan_fake_stack.cc \
+asan_globals.cc \
+asan_interceptors.cc \
+asan_linux.cc \
+asan_mac.cc \
+asan_malloc_linux.cc \
+asan_malloc_mac.cc \
+asan_malloc_win.cc \
+asan_new_delete.cc \
+asan_poisoning.cc \
+asan_posix.cc \
+asan_report.cc \
+asan_rtl.cc \
+asan_stack.cc \
+asan_stats.cc \
+asan_thread.cc \
+asan_win.cc \
+asan_win_dll_thunk.cc \
+asan_win_dynamic_runtime_thunk.cc
 
 INTERCEPTION_SRCS= \
-	interception_linux.cc \
-	interception_type_test.cc
+interception_linux.cc \
+interception_mac.cc \
+interception_type_test.cc \
+interception_win.cc
 
 SANITIZER_SRCS= \
-	sanitizer_allocator.cc \
-	sanitizer_common.cc \
-	sanitizer_flags.cc \
-	sanitizer_libc.cc \
-	sanitizer_netbsd.cc \
-	sanitizer_mac.cc \
-	sanitizer_posix.cc \
-	sanitizer_platform_limits_posix.cc \
-	sanitizer_printf.cc \
-	sanitizer_stackdepot.cc \
-	sanitizer_stacktrace.cc \
-	sanitizer_symbolizer.cc \
-	sanitizer_win.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_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_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_posix_libcdep.cc \
+sanitizer_symbolizer_win.cc \
+sanitizer_thread_registry.cc \
+sanitizer_tls_get_addr.cc \
+sanitizer_unwind_posix_libcdep.cc \
+sanitizer_win.cc
 
 # The linux build does this to avoid preinit sections on shared libraries
 CSHLIBFLAGS+= -DPIC
@@ -49,9 +83,11 @@ LIB=	asan
 SRCS=	${ASAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
 CPPFLAGS+=-I${ASAN}/include -I${ASAN}
 CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
+CPPFLAGS+=-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DASAN_HAS_EXCEPTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0 -DASAN_NEEDS_SEGV=1
 
 LIBDPLIBS+=stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+=pthread ${.CURDIR}/../../../../../lib/libpthread
+COPTS+=-std=gnu++11 -fsized-deallocation -fvisibility=hidden
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator2.cc += -O1

Index: src/external/gpl3/gcc/lib/libasan/shlib_version
diff -u src/external/gpl3/gcc/lib/libasan/shlib_version:1.1 src/external/gpl3/gcc/lib/libasan/shlib_version:1.2
--- src/external/gpl3/gcc/lib/libasan/shlib_version:1.1	Tue Oct 21 20:16:29 2014
+++ src/external/gpl3/gcc/lib/libasan/shlib_version	Tue May 31 16:47:52 2016
@@ -1,2 +1,2 @@
-major=0
+major=1
 minor=0



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

2016-04-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr 20 17:18:52 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib: Makefile.inc
src/external/gpl3/gcc/lib/libgomp: Makefile
src/external/gpl3/gcc/lib/libiberty: Makefile
src/external/gpl3/gcc/lib/liblto_plugin: Makefile
src/external/gpl3/gcc/lib/libobjc: Makefile
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile

Log Message:
WARNS=1


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/Makefile.inc
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libgomp/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/lib/libiberty/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/lib/liblto_plugin/Makefile
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libobjc/Makefile
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.10 -r1.11 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/Makefile.inc
diff -u src/external/gpl3/gcc/lib/Makefile.inc:1.3 src/external/gpl3/gcc/lib/Makefile.inc:1.4
--- src/external/gpl3/gcc/lib/Makefile.inc:1.3	Sun Jun  1 15:51:01 2014
+++ src/external/gpl3/gcc/lib/Makefile.inc	Wed Apr 20 13:18:52 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.3 2014/06/01 19:51:01 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.4 2016/04/20 17:18:52 christos Exp $
 
 GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
 
@@ -9,4 +9,6 @@ _EXTERNAL_GPL3_GCC_LIB_MAKEFILE_INC_=1
 .sinclude "../../../Makefile.gcc_path"
 .sinclude "../../../../Makefile.gcc_path"
 
+WARNS=1
+
 .endif

Index: src/external/gpl3/gcc/lib/libgomp/Makefile
diff -u src/external/gpl3/gcc/lib/libgomp/Makefile:1.15 src/external/gpl3/gcc/lib/libgomp/Makefile:1.16
--- src/external/gpl3/gcc/lib/libgomp/Makefile:1.15	Tue Mar 15 02:12:30 2016
+++ src/external/gpl3/gcc/lib/libgomp/Makefile	Wed Apr 20 13:18:52 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2016/03/15 06:12:30 mrg Exp $
+#	$NetBSD: Makefile,v 1.16 2016/04/20 17:18:52 christos Exp $
 
 # build GCC's libgomp, so that -fopenmp works.
 
@@ -86,6 +86,7 @@ libinstall::
 
 .include 
 
-COPTS+=	-Wno-stack-protector
+COPTS+=	-Wno-stack-protector -Wno-missing-prototypes
+COPTS.oacc-mem.c+= -Wno-pointer-arith
 
 .PATH:	${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix

Index: src/external/gpl3/gcc/lib/libiberty/Makefile
diff -u src/external/gpl3/gcc/lib/libiberty/Makefile:1.7 src/external/gpl3/gcc/lib/libiberty/Makefile:1.8
--- src/external/gpl3/gcc/lib/libiberty/Makefile:1.7	Sun Jun  1 15:51:01 2014
+++ src/external/gpl3/gcc/lib/libiberty/Makefile	Wed Apr 20 13:18:52 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2014/06/01 19:51:01 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2016/04/20 17:18:52 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -19,10 +19,11 @@ SRCS=		${G_REQUIRED_OFILES:.o=.c} ${G_EX
 CPPFLAGS+=	-DHAVE_CONFIG_H -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \
 		-I${DIST}/include
 
-COPTS.argv.c = -Wno-stack-protector
-COPTS.cp-demangle.c = -Wno-stack-protector
-COPTS.make-relative-prefix.c = -Wno-stack-protector
-COPTS.regex.c = -Wno-stack-protector
+COPTS.argv.c += -Wno-stack-protector
+COPTS.cp-demangle.c += -Wno-stack-protector
+COPTS.make-relative-prefix.c += -Wno-stack-protector
+COPTS.regex.c += -Wno-stack-protector
+COPTS += -Wno-missing-prototypes
 
 CWARNFLAGS.clang+=	-Wno-unused-value
 

Index: src/external/gpl3/gcc/lib/liblto_plugin/Makefile
diff -u src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.3 src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.4
--- src/external/gpl3/gcc/lib/liblto_plugin/Makefile:1.3	Tue Jan  6 21:06:23 2015
+++ src/external/gpl3/gcc/lib/liblto_plugin/Makefile	Wed Apr 20 13:18:52 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2015/01/07 02:06:23 christos Exp $
+#	$NetBSD: Makefile,v 1.4 2016/04/20 17:18:52 christos Exp $
 
 .include 
 .include 
@@ -54,6 +54,7 @@ config.h: Makefile
 .include 
 
 .PATH:	${DIST}/lto-plugin ${DIST}/libiberty
+COPTS.lto-plugin.c+= -Wno-missing-prototypes
 
 .else
 .include  # do nothing

Index: src/external/gpl3/gcc/lib/libobjc/Makefile
diff -u src/external/gpl3/gcc/lib/libobjc/Makefile:1.14 src/external/gpl3/gcc/lib/libobjc/Makefile:1.15
--- src/external/gpl3/gcc/lib/libobjc/Makefile:1.14	Wed Mar 16 01:44:16 2016
+++ src/external/gpl3/gcc/lib/libobjc/Makefile	Wed Apr 20 13:18:52 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2016/03/16 05:44:16 mrg Exp $
+#	$NetBSD: Makefile,v 1.15 2016/04/20 17:18:52 christos Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -125,3 +125,5 @@ CPPFLAGS+=	-I${BINBACKENDOBJ}
 
 COPTS.archive.c+=	-Wno-error
 COPTS.sendmsg.c+=	-Wno-error
+COPTS.encoding.c+=	-Wno-pointer-arith	# sizeof(void)
+COPTS+=			-Wno-missing-prototypes

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u 

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

2016-03-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Mar 31 06:59:44 UTC 2016

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

Log Message:
Extend the "mips64 hack" to all MKSOFTFLOAT builds - avoid duplicate
symbols in libgcc.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 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/libgcc/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.25 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.26
--- src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.25	Wed Mar 23 05:28:01 2016
+++ src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile	Thu Mar 31 06:59:44 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2016/03/23 05:28:01 mrg Exp $
+#	$NetBSD: Makefile,v 1.26 2016/03/31 06:59:44 martin Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -23,7 +23,7 @@ LIB2ADD_HACK+=	${GNUHOSTDIST}/gcc/config
 .endif
 
 # XXXGCC5 GCC 5.3 has all these in libgcc and we have them in libc.
-.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
+.if ${MKSOFTFLOAT} == "yes"
 LIB2ADD_EDITED= ${G_LIB2ADD:T:Nfloatsisf.c:Nfloatunsisf.c:Nfloatsidf.c:Nfloatunsidf.c:Nfixsfsi.c:Nextendsfdf2.c:Naddsf3.c:Nmulsf3.c:Ndivsf3.c:Nadddf3.c:Nsubdf3.c:Nmuldf3.c:Ndivdf3.c:Nfixdfsi.c:S/.asm/.S/}
 .else
 LIB2ADD_EDITED=	${G_LIB2ADD:T:S/.asm/.S/}



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

2016-03-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar 24 03:33:28 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax: defs.mk gstdint.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/gstdint.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/vax/defs.mk
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk:1.4 src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk:1.5
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk:1.4	Wed Mar 23 17:24:53 2016
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk	Wed Mar 23 23:33:28 2016
@@ -37,8 +37,8 @@ G_pb_headers4=ext/pb_ds/detail/hash_fn/s
 G_pb_headers5=ext/pb_ds/detail/ov_tree_map_/policy_access_fn_imps.hpp ext/pb_ds/detail/ov_tree_map_/split_join_fn_imps.hpp ext/pb_ds/detail/ov_tree_map_/traits.hpp ext/pb_ds/detail/pairing_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/debug_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/erase_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/find_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/insert_fn_imps.hpp ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp ext/pb_ds/detail/pairing_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/pat_trie_/debug_fn_imps.hpp ext/pb_ds/detail/pat_trie_/erase_fn_imps.hpp ext/pb_ds/detail/pat_trie_/find_fn_imps.hpp ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp ext/pb_ds/detail/pat_trie_/insert_join_fn_imps.hpp ext/pb_ds/detail/pat_trie_/iterators_fn_imps.hpp ext/pb_ds/detail/pat_trie_/pat_trie_.hpp ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp ext/pb_ds/detail/pat_trie_/policy_access
 _fn_imps.hpp ext/pb_ds/detail/pat_trie_/r_erase_fn_imps.hpp ext/pb_ds/detail/pat_trie_/rotate_fn_imps.hpp ext/pb_ds/detail/pat_trie_/split_fn_imps.hpp ext/pb_ds/detail/pat_trie_/synth_access_traits.hpp ext/pb_ds/detail/pat_trie_/trace_fn_imps.hpp ext/pb_ds/detail/pat_trie_/traits.hpp ext/pb_ds/detail/pat_trie_/update_fn_imps.hpp ext/pb_ds/detail/priority_queue_base_dispatch.hpp ext/pb_ds/detail/rb_tree_map_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/debug_fn_imps.hpp
 G_pb_headers6=ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/find_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/info_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/insert_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/node.hpp ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp ext/pb_ds/detail/rb_tree_map_/split_join_fn_imps.hpp ext/pb_ds/detail/rb_tree_map_/traits.hpp ext/pb_ds/detail/rc_binomial_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/debug_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/erase_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/insert_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/rc_binomial_heap_.hpp ext/pb_ds/detail/rc_binomial_heap_/rc.hpp ext/pb_ds/detail/rc_binomial_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/rc_binomial_heap_/trace_fn_imps.hpp ext/pb_ds/detail/resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp ext/pb_ds/detail/resize_policy/hash_exponential_size_policy_imp.hpp ext/pb_ds/detail/resize_p
 olicy/hash_load_check_resize_trigger_imp.hpp ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_size_base.hpp ext/pb_ds/detail/resize_policy/hash_prime_size_policy_imp.hpp ext/pb_ds/detail/resize_policy/hash_standard_resize_policy_imp.hpp ext/pb_ds/detail/resize_policy/sample_resize_policy.hpp ext/pb_ds/detail/resize_policy/sample_resize_trigger.hpp ext/pb_ds/detail/resize_policy/sample_size_policy.hpp ext/pb_ds/detail/splay_tree_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/splay_tree_/debug_fn_imps.hpp ext/pb_ds/detail/splay_tree_/erase_fn_imps.hpp ext/pb_ds/detail/splay_tree_/find_fn_imps.hpp ext/pb_ds/detail/splay_tree_/info_fn_imps.hpp ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp ext/pb_ds/detail/splay_tree_/node.hpp ext/pb_ds/detail/splay_tree_/splay_fn_imps.hpp ext/pb_ds/detail/splay_tree_/splay_tree_.hpp ext/pb_ds/detail/splay_tree_/split_join_fn_imps.hpp ext/pb_ds/detail/splay_tree_/traits.hpp ext/pb_ds/detail/standard_policies.hpp ext/pb_ds/detail/thi
 n_heap_/constructors_destructor_fn_imps.hpp ext/pb_ds/detail/thin_heap_/debug_fn_imps.hpp ext/pb_ds/detail/thin_heap_/erase_fn_imps.hpp
 G_pb_headers7=ext/pb_ds/detail/thin_heap_/find_fn_imps.hpp ext/pb_ds/detail/thin_heap_/insert_fn_imps.hpp ext/pb_ds/detail/thin_heap_/split_join_fn_imps.hpp ext/pb_ds/detail/thin_heap_/thin_heap_.hpp ext/pb_ds/detail/thin_heap_/trace_fn_imps.hpp ext/pb_ds/detail/tree_policy/node_metadata_selector.hpp ext/pb_ds/detail/tree_policy/order_statistics_imp.hpp 

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

2016-03-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 23 05:28:01 UTC 2016

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

Log Message:
hackaround a problem on mips64 in soft-fp between libgcc and our libc.

i'm not 100% sure how this should work (matt?), as now we have some
functions coming from libc and some from libgcc, but this at least
builds now.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/lib/libgcc/libgcc_s/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/libgcc/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.24 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.25
--- src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.24	Wed Mar 23 00:20:18 2016
+++ src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile	Wed Mar 23 05:28:01 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2016/03/23 00:20:18 mrg Exp $
+#	$NetBSD: Makefile,v 1.25 2016/03/23 05:28:01 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -22,8 +22,15 @@ LIB2ADD_HACK+=	${GNUHOSTDIST}/gcc/config
 		${GNUHOSTDIST}/gcc/config/floatunsisf.c
 .endif
 
+# XXXGCC5 GCC 5.3 has all these in libgcc and we have them in libc.
+.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
+LIB2ADD_EDITED= ${G_LIB2ADD:T:Nfloatsisf.c:Nfloatunsisf.c:Nfloatsidf.c:Nfloatunsidf.c:Nfixsfsi.c:Nextendsfdf2.c:Naddsf3.c:Nmulsf3.c:Ndivsf3.c:Nadddf3.c:Nsubdf3.c:Nmuldf3.c:Ndivdf3.c:Nfixdfsi.c:S/.asm/.S/}
+.else
+LIB2ADD_EDITED=	${G_LIB2ADD:T:S/.asm/.S/}
+.endif
+
 SRCS+=		${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
-		${G_LIB2ADD:T:S/.asm/.S/} \
+		${LIB2ADD_EDITED} \
 		${LIB2ADD_HACK:T:S/.asm/.S/} \
 		${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS}
 .if ${MKPIC} == "no"

Index: src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.12 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.13
--- src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.12	Wed Mar 23 00:20:18 2016
+++ src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile	Wed Mar 23 05:28:01 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2016/03/23 00:20:18 mrg Exp $
+#	$NetBSD: Makefile,v 1.13 2016/03/23 05:28:01 mrg Exp $
 
 USE_SHLIBDIR=	yes
 REQUIRETOOLS=	yes
@@ -28,8 +28,15 @@ LIB2ADD_HACK+=	${GNUHOSTDIST}/gcc/config
 		${GNUHOSTDIST}/gcc/config/floatunsisf.c
 .endif
 
+# XXXGCC5 GCC 5.3 has all these in libgcc and we have them in libc.
+.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
+LIB2ADD_EDITED= ${G_LIB2ADD:T:Nfloatsisf.c:Nfloatunsisf.c:Nfloatsidf.c:Nfloatunsidf.c:Nfixsfsi.c:Nextendsfdf2.c:Naddsf3.c:Nmulsf3.c:Ndivsf3.c:Nadddf3.c:Nsubdf3.c:Nmuldf3.c:Ndivdf3.c:Nfixdfsi.c:S/.asm/.S/}
+.else
+LIB2ADD_EDITED=	${G_LIB2ADD:T:S/.asm/.S/}
+.endif
+
 SRCS+=		${LIB2FUNCS} ${LIB2DIVMOD} ${LIB2_EH} ${LIB2_EHASM} \
-		${G_LIB2ADD:T:S/.asm/.S/} \
+		${LIB2ADD_EDITED} \
 		${LIB2ADD_HACK:T:S/.asm/.S/} \
 		${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS}
 



  1   2   3   >