CVS commit: src/tools/gcc

2016-03-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 03:22:06 UTC 2016

Modified Files:
src/tools/gcc: mknative-gcc

Log Message:
very first baby steps towards GCC 5.3 mknative.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/tools/gcc/mknative-gcc

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

Modified files:

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.82 src/tools/gcc/mknative-gcc:1.83
--- src/tools/gcc/mknative-gcc:1.82	Sun Jan 24 05:02:23 2016
+++ src/tools/gcc/mknative-gcc	Tue Mar 15 03:22:06 2016
@@ -1,10 +1,10 @@
 #!/bin/sh
-#	$NetBSD: mknative-gcc,v 1.82 2016/01/24 05:02:23 mrg Exp $
+#	$NetBSD: mknative-gcc,v 1.83 2016/03/15 03:22:06 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of gcc.
 #
-# This version is for GCC 4.8.
+# This version is for GCC 5.3
 
 # initialise
 
@@ -24,9 +24,8 @@ fi
 
 . $_TOP/tools/gcc/mknative.common
 
-# default to GCC 4.1 for now
-_OUTDIR="$_TOP/gnu"
-_OUTDIRBASE="gnu"
+_OUTDIR="$_TOP/external/gpl3/gcc"
+_OUTDIRBASE="external/gpl3/gcc"
 
 sanitise_includes () {
 	sed \
@@ -275,7 +274,7 @@ get_libstdcxx_v3 () {
 get_gcc_bootstrap () {
 	_subdir="$1"
 	mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH
-	for f in auto-host tm config; do
+	for f in auto-host tm config insn-modes; do
 		write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h
 	done
 }
@@ -396,8 +395,6 @@ case "$1" in
 # .mk and .h files for libgcc bootstrap (from host build)
 
 libgcc*-bootstrap)
-	_OUTDIR="$_TOP/external/gpl3/gcc"
-	_OUTDIRBASE="external/gpl3/gcc"
 	get_libgcc gcc
 	get_libgcov gcc $_PLATFORM/libgcc/Makefile
 	get_crtstuff crtstuff
@@ -406,15 +403,11 @@ libgcc*-bootstrap)
 	;;
 
 libstdc++-bootstrap)
-	_OUTDIR="$_TOP/external/gpl3/gcc"
-	_OUTDIRBASE="external/gpl3/gcc"
 	get_libstdcxx_v3 libstdc++-v3 gcc
 	exit 0
 	;;
 
 gcc*)
-	_OUTDIR="$_TOP/external/gpl3/gcc"
-	_OUTDIRBASE="external/gpl3/gcc"
 	get_gcc gcc
 	get_libgcc gcc
 	get_libgcov gcc $_PLATFORM/libgcc/Makefile



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

2016-03-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 03:19:38 UTC 2016

Modified Files:
src/external/gpl3/gcc/lib: Makefile
Removed Files:
src/external/gpl3/gcc/lib/libmudflap: Makefile config.h
src/external/gpl3/gcc/lib/libmudflapth: Makefile

Log Message:
libmudflap is obsolete in GCC 5.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/Makefile
cvs rdiff -u -r1.7 -r0 src/external/gpl3/gcc/lib/libmudflap/Makefile
cvs rdiff -u -r1.1 -r0 src/external/gpl3/gcc/lib/libmudflap/config.h
cvs rdiff -u -r1.5 -r0 src/external/gpl3/gcc/lib/libmudflapth/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.8 src/external/gpl3/gcc/lib/Makefile:1.9
--- src/external/gpl3/gcc/lib/Makefile:1.8	Wed Oct 22 21:21:02 2014
+++ src/external/gpl3/gcc/lib/Makefile	Tue Mar 15 03:19:38 2016
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.8 2014/10/22 21:21:02 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2016/03/15 03:19:38 mrg Exp $
 
 .include 
 
 # crtstuff is built out of elsewhere, or not at all
 SUBDIR+= libgcc libiberty libobjc libgomp
-SUBDIR+= libmudflap libmudflapth libbacktrace
+SUBDIR+= libbacktrace
 SUBDIR+= liblto_plugin
 
 .if (${MKLIBSTDCXX} != "no")



CVS commit: src/external/bsd/libproc/lib

2016-03-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 03:17:59 UTC 2016

Modified Files:
src/external/bsd/libproc/lib: Makefile

Log Message:
don't try to do c++ if MKCXX == "no".


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/libproc/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/bsd/libproc/lib/Makefile
diff -u src/external/bsd/libproc/lib/Makefile:1.2 src/external/bsd/libproc/lib/Makefile:1.3
--- src/external/bsd/libproc/lib/Makefile:1.2	Thu Dec 24 00:36:43 2015
+++ src/external/bsd/libproc/lib/Makefile	Tue Mar 15 03:17:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2015/12/24 00:36:43 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2016/03/15 03:17:59 mrg Exp $
 
 .include 
 
@@ -33,7 +33,7 @@ CPPFLAGS+=	-I${OSNET}/sys \
 CPPFLAGS+=	-DNO_CTF
 .endif
 
-.if defined(NOCPLUSPLUS)
+.if defined(NOCPLUSPLUS) || ${MKCXX} == "no"
 CPPFLAGS+=	-DNO_CXA_DEMANGLE
 .else
 LIBISCXX=	yes



CVS commit: src/sys/kern

2016-03-14 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Mar 15 02:59:24 UTC 2016

Modified Files:
src/sys/kern: kern_module_vfs.c

Log Message:
Add debug messages to report all attempts to load modules (and their
plists) from the filesystem.  Note that messages are displayed prior
to the actual load activity.  Previous messages are still displayed
for success/failure reporting.

This is an interim solution to the issue in kern/15837 and should be
replaced (or enhanced) once there is an off-system logging capability.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_module_vfs.c

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

Modified files:

Index: src/sys/kern/kern_module_vfs.c
diff -u src/sys/kern/kern_module_vfs.c:1.13 src/sys/kern/kern_module_vfs.c:1.14
--- src/sys/kern/kern_module_vfs.c:1.13	Tue Dec  2 13:00:38 2014
+++ src/sys/kern/kern_module_vfs.c	Tue Mar 15 02:59:24 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_module_vfs.c,v 1.13 2014/12/02 13:00:38 pooka Exp $	*/
+/*	$NetBSD: kern_module_vfs.c,v 1.14 2016/03/15 02:59:24 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_module_vfs.c,v 1.13 2014/12/02 13:00:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module_vfs.c,v 1.14 2016/03/15 02:59:24 pgoyette Exp $");
 
 #define _MODULE_INTERNAL
 #include 
@@ -81,6 +81,7 @@ module_load_vfs(const char *name, int fl
 		if (strchr(name,  '/') != NULL) {
 			nochroot = false;
 			snprintf(path, MAXPATHLEN, "%s", name);
+			module_print("Loading module from %s", path);
 			error = kobj_load_vfs(>mod_kobj, path, nochroot);
 		} else
 			error = ENOENT;
@@ -90,6 +91,7 @@ module_load_vfs(const char *name, int fl
 			nochroot = true;
 			snprintf(path, MAXPATHLEN, "%s/%s/%s.kmod",
 			module_base, name, name);
+			module_print("Loading module from %s", path);
 			error = kobj_load_vfs(>mod_kobj, path, nochroot);
 		} else
 			error = ENOENT;
@@ -177,6 +179,7 @@ module_load_plist_vfs(const char *modpat
 		error = ENOMEM;
 		goto out1;
 	}
+	module_print("Loading plist from %s", proppath);
 	
 	NDINIT(, LOOKUP, FOLLOW | (nochroot ? NOCHROOT : 0), pb);
 



CVS commit: src/usr.bin/apply

2016-03-14 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Mar 14 09:53:38 UTC 2016

Modified Files:
src/usr.bin/apply: apply.1

Log Message:
Be more precise.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/apply/apply.1

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

Modified files:

Index: src/usr.bin/apply/apply.1
diff -u src/usr.bin/apply/apply.1:1.14 src/usr.bin/apply/apply.1:1.15
--- src/usr.bin/apply/apply.1:1.14	Sat Mar 12 22:17:23 2016
+++ src/usr.bin/apply/apply.1	Mon Mar 14 09:53:37 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: apply.1,v 1.14 2016/03/12 22:17:23 dholland Exp $
+.\"	$NetBSD: apply.1,v 1.15 2016/03/14 09:53:37 wiz Exp $
 .\"
 .\" Copyright (c) 1983, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -120,7 +120,7 @@ Runs
 .It Li "apply \'ln %1 /home/joe/joe.%1\'" *
 Hard-links all files in the current directory into the directory
 .Pa /home/joe ,
-with their names prefixed with "joe".
+with their names prefixed with "joe.".
 .It Li "apply \'cvs diff %1 > %1.diff'" *.c
 Diff all C sources in the current directory against the last
 checked-in version and store each result in its own output file.



CVS commit: src/sys/arch/evbarm/rpi

2016-03-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Mar 14 07:43:00 UTC 2016

Modified Files:
src/sys/arch/evbarm/rpi: vcprop.h

Log Message:
Update vcprop_tag_clockrate structure


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/rpi/vcprop.h

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

Modified files:

Index: src/sys/arch/evbarm/rpi/vcprop.h
diff -u src/sys/arch/evbarm/rpi/vcprop.h:1.13 src/sys/arch/evbarm/rpi/vcprop.h:1.14
--- src/sys/arch/evbarm/rpi/vcprop.h:1.13	Sun Sep 28 14:38:29 2014
+++ src/sys/arch/evbarm/rpi/vcprop.h	Mon Mar 14 07:43:00 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: vcprop.h,v 1.13 2014/09/28 14:38:29 macallan Exp $	*/
+/*	$NetBSD: vcprop.h,v 1.14 2016/03/14 07:43:00 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -186,6 +186,7 @@ struct vcprop_tag_clockrate {
 	struct vcprop_tag tag;
 	uint32_t id;
 	uint32_t rate;
+	uint32_t noturbo;
 };
 
 #define VCPROP_VOLTAGE_CORE	1



CVS commit: src/usr.bin/make

2016-03-14 Thread Matthias Pfaller
Module Name:src
Committed By:   matthias
Date:   Mon Mar 14 07:42:16 UTC 2016

Modified Files:
src/usr.bin/make: make.1 suff.c

Log Message:
make $@ an alias for $! in archive member rules (compatibility with
other makes).


To generate a diff of this commit:
cvs rdiff -u -r1.254 -r1.255 src/usr.bin/make/make.1
cvs rdiff -u -r1.78 -r1.79 src/usr.bin/make/suff.c

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

Modified files:

Index: src/usr.bin/make/make.1
diff -u src/usr.bin/make/make.1:1.254 src/usr.bin/make/make.1:1.255
--- src/usr.bin/make/make.1:1.254	Sat Feb 20 01:43:28 2016
+++ src/usr.bin/make/make.1	Mon Mar 14 07:42:15 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: make.1,v 1.254 2016/02/20 01:43:28 wiz Exp $
+.\"	$NetBSD: make.1,v 1.255 2016/03/14 07:42:15 matthias Exp $
 .\"
 .\" Copyright (c) 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -685,6 +685,9 @@ or it will not be recognized.
 .It Va .TARGET
 The name of the target; also known as
 .Ql Va @ .
+For compatibility with other makes this is an alias for
+.Ic Va .ARCHIVE
+in archive member rules.
 .El
 .Pp
 The shorter forms

Index: src/usr.bin/make/suff.c
diff -u src/usr.bin/make/suff.c:1.78 src/usr.bin/make/suff.c:1.79
--- src/usr.bin/make/suff.c:1.78	Thu Feb 18 18:29:14 2016
+++ src/usr.bin/make/suff.c	Mon Mar 14 07:42:15 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $	*/
+/*	$NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $";
+static char rcsid[] = "$NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $";
 #else
 #include 
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)suff.c	8.4 (Berkeley) 3/21/94";
 #else
-__RCSID("$NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $");
+__RCSID("$NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1955,6 +1955,11 @@ SuffFindArchiveDeps(GNode *gn, Lst slst)
 Var_Set(MEMBER, name, gn, 0);
 Var_Set(ARCHIVE, gn->name, gn, 0);
 
+/*
+ * Set $@ for compatibility with other makes
+ */
+Var_Set(TARGET, gn->name, gn, 0);
+
 if (ms != NULL) {
 	/*
 	 * Member has a known suffix, so look for a transformation rule from



CVS commit: src/external/gpl3/gcc/dist/gcc/config/pa

2016-03-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Mar 14 07:33:27 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h

Log Message:
Remove code for the !TARGET_BIG_SWITCH case


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.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/dist/gcc/config/pa/pa-netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.3 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.4
--- src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.3	Mon Feb 22 07:57:11 2016
+++ src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h	Mon Mar 14 07:33:27 2016
@@ -73,17 +73,11 @@ along with GCC; see the file COPYING3.  
 
 #undef ASM_OUTPUT_ADDR_VEC_ELT
 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
-  if (TARGET_BIG_SWITCH)	\
-fprintf (FILE, "\t.word .L%d\n", VALUE);			\
-  else\
-fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
+  fprintf (FILE, "\t.word .L%d\n", VALUE)
 
 #undef ASM_OUTPUT_ADDR_DIFF_ELT
 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
-  if (TARGET_BIG_SWITCH)	\
-fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL);		\
-  else\
-fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
+  fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL)
 
 /* Use the default.  */
 #undef ASM_OUTPUT_LABEL