CVS commit: [netbsd-7] src/distrib/utils/embedded

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jan 29 15:12:49 UTC 2015

Modified Files:
src/distrib/utils/embedded [netbsd-7]: mkimage
src/distrib/utils/embedded/conf [netbsd-7]: evbarm.conf x86.conf

Log Message:
Pull up following revision(s) (requested by skrll in ticket #470):
distrib/utils/embedded/mkimage: revision 1.52
distrib/utils/embedded/conf/x86.conf: revision 1.7
distrib/utils/embedded/conf/evbarm.conf: revision 1.20
Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.
While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db


To generate a diff of this commit:
cvs rdiff -u -r1.48.4.2 -r1.48.4.3 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.15.4.3 -r1.15.4.4 \
src/distrib/utils/embedded/conf/evbarm.conf
cvs rdiff -u -r1.4.6.1 -r1.4.6.2 src/distrib/utils/embedded/conf/x86.conf

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

Modified files:

Index: src/distrib/utils/embedded/mkimage
diff -u src/distrib/utils/embedded/mkimage:1.48.4.2 src/distrib/utils/embedded/mkimage:1.48.4.3
--- src/distrib/utils/embedded/mkimage:1.48.4.2	Wed Jan 28 11:27:03 2015
+++ src/distrib/utils/embedded/mkimage	Thu Jan 29 15:12:48 2015
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.48.4.2 2015/01/28 11:27:03 martin Exp $
+# $NetBSD: mkimage,v 1.48.4.3 2015/01/29 15:12:48 martin Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -176,7 +176,7 @@ fi
 
 if [ -z ${bootonly} ]; then
 	echo ${bar} Populating ffs filesystem ${bar}
-	${MAKEFS} -N ${release}/etc -t ffs -rx \
+	${MAKEFS} -r -N ${release}/etc -t ffs -rx \
 	-O ${ffsoffset} \
 	-o d=4096 -b $((${extra}))m \
 	-F $tmp/selected_sets ${image} ${release} ${mnt}

Index: src/distrib/utils/embedded/conf/evbarm.conf
diff -u src/distrib/utils/embedded/conf/evbarm.conf:1.15.4.3 src/distrib/utils/embedded/conf/evbarm.conf:1.15.4.4
--- src/distrib/utils/embedded/conf/evbarm.conf:1.15.4.3	Wed Jan 28 18:37:45 2015
+++ src/distrib/utils/embedded/conf/evbarm.conf	Thu Jan 29 15:12:48 2015
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.15.4.3 2015/01/28 18:37:45 martin Exp $
+# $NetBSD: evbarm.conf,v 1.15.4.4 2015/01/29 15:12:48 martin Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -6,7 +6,7 @@ image=$HOME/${board}.img
 MACHINE=evbarm
 
 swap=256
-extra=8		# spare space
+extra=48		# spare space
 boot=112
 init=8
 ffsoffset=$(( (${init} + ${boot} + ${swap}) / 2 ))m
@@ -110,6 +110,12 @@ make_fstab_evbarm() {
 	fi
 	echo ./etc/fstab type=file uname=root gname=wheel mode=0644 \
 	 $tmp/selected_sets
+
+	# Missing mount points from fstab
+	echo ./proc type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
+	echo ./kern type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
 }
 
 customize_evbarm() {
@@ -126,6 +132,9 @@ hostname=${board}
 sshd=YES
 dhcpcd=YES
 EOF
+	echo ./etc/rc.conf type=file uname=root gname=wheel mode=0644 \
+	 $tmp/selected_sets
+
 	if [ ! -f ${release}/dev/MAKEDEV ]; then
 		echo ${PROG}: Missing ${release}/dev/MAKEDEV 12
 		exit 1

Index: src/distrib/utils/embedded/conf/x86.conf
diff -u src/distrib/utils/embedded/conf/x86.conf:1.4.6.1 src/distrib/utils/embedded/conf/x86.conf:1.4.6.2
--- src/distrib/utils/embedded/conf/x86.conf:1.4.6.1	Wed Jan 28 22:06:14 2015
+++ src/distrib/utils/embedded/conf/x86.conf	Thu Jan 29 15:12:48 2015
@@ -1,4 +1,4 @@
-# $NetBSD: x86.conf,v 1.4.6.1 2015/01/28 22:06:14 martin Exp $
+# $NetBSD: x86.conf,v 1.4.6.2 2015/01/29 15:12:48 martin Exp $
 # x86 shared config
 #
 
@@ -92,6 +92,11 @@ make_fstab() {
 	fi
 	echo ./etc/fstab type=file uname=root gname=wheel mode=0755 \
 	 $tmp/selected_sets
+
+	echo ./proc type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
+	echo ./kern type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
 }
 
 customize() {
@@ -110,6 +115,9 @@ dhcpcd=YES
 wscons=YES
 devpubd=YES
 EOF
+	echo ./etc/rc.conf type=file uname=root gname=wheel mode=0644 \
+	 $tmp/selected_sets
+
 	if [ ! -f ${release}/dev/MAKEDEV ]; then
 		echo ${PROG}: Missing ${release}/dev/MAKEDEV 12
 		exit 1
@@ -117,9 +125,6 @@ EOF
 	echo ${bar} running MAKEDEV ${bar}
 	${HOST_SH} ${release}/dev/MAKEDEV -s all | sed -e 's:^\./:\./dev/:' \
 	 $tmp/selected_sets
-
-	echo ${bar} creating directories ${bar}
-	mkdir ${mnt}/proc ${mnt}/kern
 }
 
 populate() {



CVS commit: [netbsd-7] src/distrib/utils/embedded

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jan 29 15:12:49 UTC 2015

Modified Files:
src/distrib/utils/embedded [netbsd-7]: mkimage
src/distrib/utils/embedded/conf [netbsd-7]: evbarm.conf x86.conf

Log Message:
Pull up following revision(s) (requested by skrll in ticket #470):
distrib/utils/embedded/mkimage: revision 1.52
distrib/utils/embedded/conf/x86.conf: revision 1.7
distrib/utils/embedded/conf/evbarm.conf: revision 1.20
Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.
While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db


To generate a diff of this commit:
cvs rdiff -u -r1.48.4.2 -r1.48.4.3 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.15.4.3 -r1.15.4.4 \
src/distrib/utils/embedded/conf/evbarm.conf
cvs rdiff -u -r1.4.6.1 -r1.4.6.2 src/distrib/utils/embedded/conf/x86.conf

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



CVS commit: [netbsd-7] src/doc

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jan 29 15:15:40 UTC 2015

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Ticket #470


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.187 -r1.1.2.188 src/doc/CHANGES-7.0

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

Modified files:

Index: src/doc/CHANGES-7.0
diff -u src/doc/CHANGES-7.0:1.1.2.187 src/doc/CHANGES-7.0:1.1.2.188
--- src/doc/CHANGES-7.0:1.1.2.187	Wed Jan 28 19:53:10 2015
+++ src/doc/CHANGES-7.0	Thu Jan 29 15:15:40 2015
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0,v 1.1.2.187 2015/01/28 19:53:10 snj Exp $
+# $NetBSD: CHANGES-7.0,v 1.1.2.188 2015/01/29 15:15:40 martin Exp $
 
 A complete list of changes from the initial NetBSD 7.0 branch on 11 Aug 2014
 until the 7.0 release:
@@ -15244,3 +15244,13 @@ sys/dev/vnd.c	1.240-1.241
 	nestiobuf_done().
 	[bouyer, ticket #468]
 
+distrib/utils/embedded/conf/evbarm.conf		1.20
+distrib/utils/embedded/conf/x86.conf		1.7
+distrib/utils/embedded/mkimage			1.52
+
+	Fix previous so that the new generated rc.conf is picked up and that
+	any new new mount points (e.g. /proc and /kern) are generated.
+	While here increate the fs size so that postfix can actually build
+	/etc/mail/aliases.db
+	[skrll, ticket #470]
+



CVS commit: [netbsd-7] src/doc

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jan 29 15:15:40 UTC 2015

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Ticket #470


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.187 -r1.1.2.188 src/doc/CHANGES-7.0

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



Re: CVS commit: src/tests/lib/libm

2015-01-29 Thread Tetsuya Isaki
At Sat, 24 Jan 2015 10:35:01 +,
David Laight wrote:
Log Message:
In the exp2_values test case, provide separate expected return values
for the float case, reflecting the actual exp2f() argument value after
rounding to float precision.  Fixes PR lib/49256.  Thanks to Makoto
Kamada and Tetsuya Isaki for the analysis.
   
   The reason I left the tests failing is that the results should be more
   accurate than the values that are actually returned.
   
   Changing the 'expected' values so that the tests pass is just wrong.
 ...
   I think the values ought to be accurate to one or two counts on the lsb
   of the mantissa.
  
  It is not an acuuracy problem of result, is an implicit type cast
  problem of argument.
  
  exp2()'s argument is double and exp2f()'s is float.
  
  As you know,
  exp2(7.7) means exp2((double)7.7) and
  exp2f(7.7) means exp2f((float)7.7).
  
  (double)7.7 = 0x1.ecccdp+2 in %a format
  (float)7.7  = 0x1.ecp+2 in %a format
 
 I'd forgetten to allow for that difference, and the change didn't
 mention it either.
 I'd expect (double)exp2f(f) to differ from exp2((double)f) by only
 1 or 2 counts in the mantissa. You definitely want to use the
 lattet calculation to get the check value.
 
 It is 'interesting' that (float)7.7 gets truncated rather than
 rounded. I'd expect 7.7f to be 0x1edp+2, which would bring
 the result into the old bounds.

%a's mantissa for float is 24 bit long (6 digit hex), but
float's mantissa is 23 bit long.  Therefore the LSB of this
format is 'invalid' bit, not 'valid and zero'.

(On the other hand, double's mantissa is 52 bit and 13 digit
hex of %a format is also 54 bit.  double does not have such
a trailing invalid bit.)

7.7 is represented as 0x1.ecc...p+2.
In float, ULP=0 Guard=0 as below, so it is truncated.

 bit 1720  2124  25
  ... 1 1 0 0   1 1 0 0   1 1 0 0 ...
^ ^   ^
  ULP G   R S

In double, on the other hand, ULP=0 Guard=1 and Round=1, so
it is rounded up.

 bit 4750  5154  55
  ... 1 1 0 0   1 1 0 0   1 1 0 0 ...
  ^   ^ ^
 ULP  G R S
---
Tetsuya Isaki is...@pastel-flower.jp / is...@netbsd.org


CVS commit: src/usr.bin/m4

2015-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 29 13:20:51 UTC 2015

Modified Files:
src/usr.bin/m4: Makefile

Log Message:
latent strtonum removal.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/m4/Makefile

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



CVS commit: src/usr.bin/m4

2015-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 29 13:20:51 UTC 2015

Modified Files:
src/usr.bin/m4: Makefile

Log Message:
latent strtonum removal.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/m4/Makefile

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/m4/Makefile
diff -u src/usr.bin/m4/Makefile:1.17 src/usr.bin/m4/Makefile:1.18
--- src/usr.bin/m4/Makefile:1.17	Sun Aug 14 08:59:25 2011
+++ src/usr.bin/m4/Makefile	Thu Jan 29 08:20:51 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2011/08/14 12:59:25 christos Exp $
+#	$NetBSD: Makefile,v 1.18 2015/01/29 13:20:51 christos Exp $
 #
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 
@@ -8,12 +8,13 @@
 
 PROG=		m4
 CPPFLAGS+=	-DEXTENDED -I${.CURDIR}/lib
+CPPFLAGS+=	-D_OPENBSD_SOURCE
 SRCS=	parser.y tokenizer.l eval.c expr.c look.c main.c misc.c gnum4.c trace.c
 .PATH: ${.CURDIR}/lib
 SRCS+=	ohash_create_entry.c ohash_delete.c ohash_do.c ohash_entries.c \
 	ohash_enum.c ohash_init.c ohash_int.h ohash_interval.c \
 	ohash_lookup_interval.c ohash_lookup_memory.c ohash_qlookup.c \
-	ohash_qlookupi.c strtonum.c
+	ohash_qlookupi.c
 YHEADER=1
 .if (${HOSTPROG:U} == )
 DPADD+=		${LIBUTIL} ${LIBL}



CVS commit: src/distrib/utils/embedded

2015-01-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 29 14:54:06 UTC 2015

Modified Files:
src/distrib/utils/embedded: mkimage
src/distrib/utils/embedded/conf: evbarm.conf x86.conf

Log Message:
Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.

While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.19 -r1.20 src/distrib/utils/embedded/conf/evbarm.conf
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/embedded/conf/x86.conf

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



CVS commit: src/distrib/utils/embedded

2015-01-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 29 14:54:06 UTC 2015

Modified Files:
src/distrib/utils/embedded: mkimage
src/distrib/utils/embedded/conf: evbarm.conf x86.conf

Log Message:
Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.

While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/distrib/utils/embedded/mkimage
cvs rdiff -u -r1.19 -r1.20 src/distrib/utils/embedded/conf/evbarm.conf
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/embedded/conf/x86.conf

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

Modified files:

Index: src/distrib/utils/embedded/mkimage
diff -u src/distrib/utils/embedded/mkimage:1.51 src/distrib/utils/embedded/mkimage:1.52
--- src/distrib/utils/embedded/mkimage:1.51	Fri Jan 23 15:17:58 2015
+++ src/distrib/utils/embedded/mkimage	Thu Jan 29 14:54:06 2015
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.51 2015/01/23 15:17:58 skrll Exp $
+# $NetBSD: mkimage,v 1.52 2015/01/29 14:54:06 skrll Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -176,7 +176,7 @@ fi
 
 if [ -z ${bootonly} ]; then
 	echo ${bar} Populating ffs filesystem ${bar}
-	${MAKEFS} -N ${release}/etc -t ffs -rx \
+	${MAKEFS} -r -N ${release}/etc -t ffs -rx \
 	-O ${ffsoffset} \
 	-o d=4096 -b $((${extra}))m \
 	-F $tmp/selected_sets ${image} ${release} ${mnt}

Index: src/distrib/utils/embedded/conf/evbarm.conf
diff -u src/distrib/utils/embedded/conf/evbarm.conf:1.19 src/distrib/utils/embedded/conf/evbarm.conf:1.20
--- src/distrib/utils/embedded/conf/evbarm.conf:1.19	Wed Jan 28 12:08:00 2015
+++ src/distrib/utils/embedded/conf/evbarm.conf	Thu Jan 29 14:54:06 2015
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.19 2015/01/28 12:08:00 jmcneill Exp $
+# $NetBSD: evbarm.conf,v 1.20 2015/01/29 14:54:06 skrll Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -6,7 +6,7 @@ image=$HOME/${board}.img
 MACHINE=evbarm
 
 swap=256
-extra=8		# spare space
+extra=48		# spare space
 boot=112
 init=8
 ffsoffset=$(( (${init} + ${boot} + ${swap}) / 2 ))m
@@ -110,6 +110,12 @@ make_fstab_evbarm() {
 	fi
 	echo ./etc/fstab type=file uname=root gname=wheel mode=0644 \
 	 $tmp/selected_sets
+
+	# Missing mount points from fstab
+	echo ./proc type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
+	echo ./kern type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
 }
 
 customize_evbarm() {
@@ -128,6 +134,9 @@ dhcpcd=YES
 ntpd=YES
 ntpd_flags=-g
 EOF
+	echo ./etc/rc.conf type=file uname=root gname=wheel mode=0644 \
+	 $tmp/selected_sets
+
 	if [ ! -f ${release}/dev/MAKEDEV ]; then
 		echo ${PROG}: Missing ${release}/dev/MAKEDEV 12
 		exit 1

Index: src/distrib/utils/embedded/conf/x86.conf
diff -u src/distrib/utils/embedded/conf/x86.conf:1.6 src/distrib/utils/embedded/conf/x86.conf:1.7
--- src/distrib/utils/embedded/conf/x86.conf:1.6	Fri Jan 23 15:17:58 2015
+++ src/distrib/utils/embedded/conf/x86.conf	Thu Jan 29 14:54:06 2015
@@ -1,4 +1,4 @@
-# $NetBSD: x86.conf,v 1.6 2015/01/23 15:17:58 skrll Exp $
+# $NetBSD: x86.conf,v 1.7 2015/01/29 14:54:06 skrll Exp $
 # x86 shared config
 #
 
@@ -93,6 +93,11 @@ make_fstab() {
 	fi
 	echo ./etc/fstab type=file uname=root gname=wheel mode=0755 \
 	 $tmp/selected_sets
+
+	echo ./proc type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
+	echo ./kern type=dir uname=root gname=wheel mode=0755 \
+	 $tmp/selected_sets
 }
 
 customize() {
@@ -111,6 +116,9 @@ dhcpcd=YES
 wscons=YES
 devpubd=YES
 EOF
+	echo ./etc/rc.conf type=file uname=root gname=wheel mode=0644 \
+	 $tmp/selected_sets
+
 	if [ ! -f ${release}/dev/MAKEDEV ]; then
 		echo ${PROG}: Missing ${release}/dev/MAKEDEV 12
 		exit 1
@@ -118,9 +126,6 @@ EOF
 	echo ${bar} running MAKEDEV ${bar}
 	${HOST_SH} ${release}/dev/MAKEDEV -s all | sed -e 's:^\./:\./dev/:' \
 	 $tmp/selected_sets
-
-	echo ${bar} creating directories ${bar}
-	mkdir ${mnt}/proc ${mnt}/kern
 }
 
 populate() {



CVS commit: src/lib/libc/gen

2015-01-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Thu Jan 29 15:55:22 UTC 2015

Modified Files:
src/lib/libc/gen: fts.c

Log Message:
Fix double free in fts_read()/fts_close()

When fts_read() gets an error on fchdir(), it exited with sp-fts_cur
set to a freed structure. fts_close() would later attempt to free it
again, crashing the program.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/gen/fts.c

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



CVS commit: src/lib/libc/gen

2015-01-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Thu Jan 29 15:55:22 UTC 2015

Modified Files:
src/lib/libc/gen: fts.c

Log Message:
Fix double free in fts_read()/fts_close()

When fts_read() gets an error on fchdir(), it exited with sp-fts_cur
set to a freed structure. fts_close() would later attempt to free it
again, crashing the program.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/gen/fts.c

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

Modified files:

Index: src/lib/libc/gen/fts.c
diff -u src/lib/libc/gen/fts.c:1.47 src/lib/libc/gen/fts.c:1.48
--- src/lib/libc/gen/fts.c:1.47	Thu Sep 18 13:58:20 2014
+++ src/lib/libc/gen/fts.c	Thu Jan 29 15:55:21 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: fts.c,v 1.47 2014/09/18 13:58:20 christos Exp $	*/
+/*	$NetBSD: fts.c,v 1.48 2015/01/29 15:55:21 manu Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = @(#)fts.c	8.6 (Berkeley) 8/14/94;
 #else
-__RCSID($NetBSD: fts.c,v 1.47 2014/09/18 13:58:20 christos Exp $);
+__RCSID($NetBSD: fts.c,v 1.48 2015/01/29 15:55:21 manu Exp $);
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -430,8 +430,19 @@ fts_read(FTS *sp)
 		goto name;
 	}
 
+next:	
 	/* Move to the next node on this level. */
-next:	tmp = p;
+	tmp = p;
+
+	/* 
+	 * We are going to free sp-fts_cur, set it to NULL so 
+	 * that fts_close() does not attempt to free it again 
+	 * if we exit without setting it to a new value because
+	 * FCHDIR() failed below.
+	 */
+	assert(tmp == sp-fts_cur);
+	sp-fts_cur = NULL;
+	
 	if ((p = p-fts_link) != NULL) {
 		fts_free(tmp);
 



CVS commit: src/usr.bin/m4

2015-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 29 19:26:20 UTC 2015

Modified Files:
src/usr.bin/m4: Makefile eval.c

Log Message:
use strtoi instead of strtonum, since this is a tool.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/m4/Makefile
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/m4/eval.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/m4/Makefile
diff -u src/usr.bin/m4/Makefile:1.18 src/usr.bin/m4/Makefile:1.19
--- src/usr.bin/m4/Makefile:1.18	Thu Jan 29 08:20:51 2015
+++ src/usr.bin/m4/Makefile	Thu Jan 29 14:26:20 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.18 2015/01/29 13:20:51 christos Exp $
+#	$NetBSD: Makefile,v 1.19 2015/01/29 19:26:20 christos Exp $
 #
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 
@@ -8,7 +8,6 @@
 
 PROG=		m4
 CPPFLAGS+=	-DEXTENDED -I${.CURDIR}/lib
-CPPFLAGS+=	-D_OPENBSD_SOURCE
 SRCS=	parser.y tokenizer.l eval.c expr.c look.c main.c misc.c gnum4.c trace.c
 .PATH: ${.CURDIR}/lib
 SRCS+=	ohash_create_entry.c ohash_delete.c ohash_do.c ohash_entries.c \

Index: src/usr.bin/m4/eval.c
diff -u src/usr.bin/m4/eval.c:1.22 src/usr.bin/m4/eval.c:1.23
--- src/usr.bin/m4/eval.c:1.22	Sun Aug 21 19:38:43 2011
+++ src/usr.bin/m4/eval.c	Thu Jan 29 14:26:20 2015
@@ -1,5 +1,5 @@
 /*	$OpenBSD: eval.c,v 1.66 2008/08/21 21:01:47 espie Exp $	*/
-/*	$NetBSD: eval.c,v 1.22 2011/08/21 23:38:43 dholland Exp $	*/
+/*	$NetBSD: eval.c,v 1.23 2015/01/29 19:26:20 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
 #include nbtool_config.h
 #endif
 #include sys/cdefs.h
-__RCSID($NetBSD: eval.c,v 1.22 2011/08/21 23:38:43 dholland Exp $);
+__RCSID($NetBSD: eval.c,v 1.23 2015/01/29 19:26:20 christos Exp $);
 
 #include sys/types.h
 #include err.h
@@ -54,6 +54,7 @@ __RCSID($NetBSD: eval.c,v 1.22 2011/08/
 #include stddef.h
 #include stdint.h
 #include string.h
+#include inttypes.h
 #include fcntl.h
 #include mdef.h
 #include stdd.h
@@ -180,17 +181,17 @@ expand_builtin(const char *argv[], int a
 	{
 		int base = 10;
 		int maxdigits = 0;
-		const char *errstr;
+		int e;
 
 		if (argc  3) {
-			base = strtonum(argv[3], 2, 36, errstr);
-			if (errstr) {
+			base = strtoi(argv[3], NULL, 0, 2, 36, e);
+			if (e) {
 m4errx(1, expr: base %s invalid., argv[3]);
 			}
 		}
 		if (argc  4) {
-			maxdigits = strtonum(argv[4], 0, INT_MAX, errstr);
-			if (errstr) {
+			maxdigits = strtoi(argv[4], NULL, 0, 0, INT_MAX, e);
+			if (e) {
 m4errx(1, expr: maxdigits %s invalid., argv[4]);
 			}
 		}
@@ -840,9 +841,9 @@ doundiv(const char *argv[], int argc)
 
 	if (argc  2) {
 		for (ind = 2; ind  argc; ind++) {
-			const char *errstr;
-			n = strtonum(argv[ind], 1, INT_MAX, errstr);
-			if (errstr) {
+			int e;
+			n = strtoi(argv[ind], NULL, 0, 1, INT_MAX, e);
+			if (e) {
 if (errno == EINVAL  mimic_gnu)
 	getdivfile(argv[ind]);
 			} else {



CVS commit: src/usr.bin/m4

2015-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 29 19:26:20 UTC 2015

Modified Files:
src/usr.bin/m4: Makefile eval.c

Log Message:
use strtoi instead of strtonum, since this is a tool.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/m4/Makefile
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/m4/eval.c

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



CVS commit: [LLVM] src/external/bsd/llvm/dist

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 21:04:31 UTC 2015

Removed Files:
src/external/bsd/llvm/dist/clang/include/clang/Analysis/Analyses [LLVM]:
DataflowWorklist.h
src/external/bsd/llvm/dist/clang/lib/AST [LLVM]:
MangleNumberingContext.cpp
src/external/bsd/llvm/dist/clang/lib/Analysis [LLVM]:
DataflowWorklist.cpp
src/external/bsd/llvm/dist/clang/lib/CodeGen [LLVM]:
SanitizerBlacklist.cpp SanitizerBlacklist.h
src/external/bsd/llvm/dist/clang/lib/Driver [LLVM]:
WindowsToolChain.cpp
src/external/bsd/llvm/dist/clang/test/CodeGen [LLVM]:
builtin-recursive.cc ppc64-varargs-struct.c sections.c
src/external/bsd/llvm/dist/clang/test/CodeGenCXX [LLVM]:
nrvo-noreturn.cc
src/external/bsd/llvm/dist/clang/test/Driver [LLVM]: freebsd.cc
src/external/bsd/llvm/dist/clang/test/Parser [LLVM]:
nested-namespaces-recovery.cpp
src/external/bsd/llvm/dist/clang/test/Sema [LLVM]: 128bitfloat.cc
src/external/bsd/llvm/dist/clang/test/SemaCXX [LLVM]:
cxx0x-initializer-stdinitializerlist-system-header.cpp
typo-correction-pt2.cpp vtable-instantiation.cc
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/scalar [LLVM]:
Makefile llvm_scalar_opts.ml llvm_scalar_opts.mli
scalar_opts_ocaml.c
src/external/bsd/llvm/dist/llvm/include/llvm/Analysis [LLVM]:
FindUsedTypes.h
src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen [LLVM]:
JITCodeEmitter.h MachineCodeEmitter.h MachineCodeInfo.h
MachineRelocation.h
src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/PBQP [LLVM]:
RegAllocSolver.h
src/external/bsd/llvm/dist/llvm/include/llvm/ExecutionEngine [LLVM]:
JIT.h JITMemoryManager.h ObjectBuffer.h ObjectImage.h
src/external/bsd/llvm/dist/llvm/include/llvm/IR [LLVM]: LeakDetector.h
src/external/bsd/llvm/dist/llvm/include/llvm/MC [LLVM]:
MCObjectDisassembler.h
src/external/bsd/llvm/dist/llvm/include/llvm/MC/MCAnalysis [LLVM]:
MCAtom.h MCFunction.h MCModule.h MCModuleYAML.h
MCObjectSymbolizer.h
src/external/bsd/llvm/dist/llvm/include/llvm/Support [LLVM]:
StreamableMemoryObject.h StringRefMemoryObject.h
src/external/bsd/llvm/dist/llvm/include/llvm/Target [LLVM]:
TargetJITInfo.h
src/external/bsd/llvm/dist/llvm/lib/Analysis/IPA [LLVM]:
FindUsedTypes.cpp
src/external/bsd/llvm/dist/llvm/lib/CodeGen [LLVM]:
AtomicExpandLoadLinkedPass.cpp JITCodeEmitter.cpp
MachineCodeEmitter.cpp Spiller.cpp
src/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter [LLVM]: DIE.h
src/external/bsd/llvm/dist/llvm/lib/DebugInfo [LLVM]:
DWARFAbbreviationDeclaration.h DWARFCompileUnit.h DWARFContext.h
DWARFDebugAbbrev.h DWARFDebugArangeSet.h DWARFDebugAranges.h
DWARFDebugFrame.h DWARFDebugInfoEntry.h DWARFDebugLine.h
DWARFDebugLoc.h DWARFDebugRangeList.h DWARFRelocMap.h
DWARFTypeUnit.h DWARFUnit.h
src/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/JIT [LLVM]:
CMakeLists.txt JIT.cpp JIT.h JITEmitter.cpp JITMemoryManager.cpp
LLVMBuild.txt Makefile
src/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld [LLVM]:
GDBRegistrar.cpp JITRegistrar.h ObjectImageCommon.h
src/external/bsd/llvm/dist/llvm/lib/IR [LLVM]: LeakDetector.cpp
src/external/bsd/llvm/dist/llvm/lib/MC/MCAnalysis [LLVM]:
CMakeLists.txt LLVMBuild.txt MCAtom.cpp MCFunction.cpp MCModule.cpp
MCModuleYAML.cpp MCObjectDisassembler.cpp MCObjectSymbolizer.cpp
Makefile
src/external/bsd/llvm/dist/llvm/lib/Support [LLVM]:
StreamableMemoryObject.cpp StringRefMemoryObject.cpp
src/external/bsd/llvm/dist/llvm/lib/Target [LLVM]: TargetJITInfo.cpp
src/external/bsd/llvm/dist/llvm/lib/Target/ARM [LLVM]:
ARMCodeEmitter.cpp ARMJITInfo.cpp ARMJITInfo.h ARMRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/Hexagon/InstPrinter [LLVM]:
CMakeLists.txt HexagonInstPrinter.cpp HexagonInstPrinter.h
LLVMBuild.txt Makefile
src/external/bsd/llvm/dist/llvm/lib/Target/Mips [LLVM]:
MipsCodeEmitter.cpp MipsJITInfo.cpp MipsJITInfo.h MipsRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/PowerPC [LLVM]:
PPCCodeEmitter.cpp PPCJITInfo.cpp PPCJITInfo.h PPCRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/Sparc [LLVM]:
SparcCodeEmitter.cpp SparcJITInfo.cpp SparcJITInfo.h
SparcRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/X86 [LLVM]:
X86AtomicExpandPass.cpp 

CVS commit: src/external/gpl3

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 21:12:10 UTC 2015

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

Log Message:
libgcc_s is linked in the specs already, don't do it explicitly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile

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



CVS commit: [LLVM] src/external/bsd/llvm/dist

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 21:04:31 UTC 2015

Removed Files:
src/external/bsd/llvm/dist/clang/include/clang/Analysis/Analyses [LLVM]:
DataflowWorklist.h
src/external/bsd/llvm/dist/clang/lib/AST [LLVM]:
MangleNumberingContext.cpp
src/external/bsd/llvm/dist/clang/lib/Analysis [LLVM]:
DataflowWorklist.cpp
src/external/bsd/llvm/dist/clang/lib/CodeGen [LLVM]:
SanitizerBlacklist.cpp SanitizerBlacklist.h
src/external/bsd/llvm/dist/clang/lib/Driver [LLVM]:
WindowsToolChain.cpp
src/external/bsd/llvm/dist/clang/test/CodeGen [LLVM]:
builtin-recursive.cc ppc64-varargs-struct.c sections.c
src/external/bsd/llvm/dist/clang/test/CodeGenCXX [LLVM]:
nrvo-noreturn.cc
src/external/bsd/llvm/dist/clang/test/Driver [LLVM]: freebsd.cc
src/external/bsd/llvm/dist/clang/test/Parser [LLVM]:
nested-namespaces-recovery.cpp
src/external/bsd/llvm/dist/clang/test/Sema [LLVM]: 128bitfloat.cc
src/external/bsd/llvm/dist/clang/test/SemaCXX [LLVM]:
cxx0x-initializer-stdinitializerlist-system-header.cpp
typo-correction-pt2.cpp vtable-instantiation.cc
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/scalar [LLVM]:
Makefile llvm_scalar_opts.ml llvm_scalar_opts.mli
scalar_opts_ocaml.c
src/external/bsd/llvm/dist/llvm/include/llvm/Analysis [LLVM]:
FindUsedTypes.h
src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen [LLVM]:
JITCodeEmitter.h MachineCodeEmitter.h MachineCodeInfo.h
MachineRelocation.h
src/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/PBQP [LLVM]:
RegAllocSolver.h
src/external/bsd/llvm/dist/llvm/include/llvm/ExecutionEngine [LLVM]:
JIT.h JITMemoryManager.h ObjectBuffer.h ObjectImage.h
src/external/bsd/llvm/dist/llvm/include/llvm/IR [LLVM]: LeakDetector.h
src/external/bsd/llvm/dist/llvm/include/llvm/MC [LLVM]:
MCObjectDisassembler.h
src/external/bsd/llvm/dist/llvm/include/llvm/MC/MCAnalysis [LLVM]:
MCAtom.h MCFunction.h MCModule.h MCModuleYAML.h
MCObjectSymbolizer.h
src/external/bsd/llvm/dist/llvm/include/llvm/Support [LLVM]:
StreamableMemoryObject.h StringRefMemoryObject.h
src/external/bsd/llvm/dist/llvm/include/llvm/Target [LLVM]:
TargetJITInfo.h
src/external/bsd/llvm/dist/llvm/lib/Analysis/IPA [LLVM]:
FindUsedTypes.cpp
src/external/bsd/llvm/dist/llvm/lib/CodeGen [LLVM]:
AtomicExpandLoadLinkedPass.cpp JITCodeEmitter.cpp
MachineCodeEmitter.cpp Spiller.cpp
src/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter [LLVM]: DIE.h
src/external/bsd/llvm/dist/llvm/lib/DebugInfo [LLVM]:
DWARFAbbreviationDeclaration.h DWARFCompileUnit.h DWARFContext.h
DWARFDebugAbbrev.h DWARFDebugArangeSet.h DWARFDebugAranges.h
DWARFDebugFrame.h DWARFDebugInfoEntry.h DWARFDebugLine.h
DWARFDebugLoc.h DWARFDebugRangeList.h DWARFRelocMap.h
DWARFTypeUnit.h DWARFUnit.h
src/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/JIT [LLVM]:
CMakeLists.txt JIT.cpp JIT.h JITEmitter.cpp JITMemoryManager.cpp
LLVMBuild.txt Makefile
src/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld [LLVM]:
GDBRegistrar.cpp JITRegistrar.h ObjectImageCommon.h
src/external/bsd/llvm/dist/llvm/lib/IR [LLVM]: LeakDetector.cpp
src/external/bsd/llvm/dist/llvm/lib/MC/MCAnalysis [LLVM]:
CMakeLists.txt LLVMBuild.txt MCAtom.cpp MCFunction.cpp MCModule.cpp
MCModuleYAML.cpp MCObjectDisassembler.cpp MCObjectSymbolizer.cpp
Makefile
src/external/bsd/llvm/dist/llvm/lib/Support [LLVM]:
StreamableMemoryObject.cpp StringRefMemoryObject.cpp
src/external/bsd/llvm/dist/llvm/lib/Target [LLVM]: TargetJITInfo.cpp
src/external/bsd/llvm/dist/llvm/lib/Target/ARM [LLVM]:
ARMCodeEmitter.cpp ARMJITInfo.cpp ARMJITInfo.h ARMRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/Hexagon/InstPrinter [LLVM]:
CMakeLists.txt HexagonInstPrinter.cpp HexagonInstPrinter.h
LLVMBuild.txt Makefile
src/external/bsd/llvm/dist/llvm/lib/Target/Mips [LLVM]:
MipsCodeEmitter.cpp MipsJITInfo.cpp MipsJITInfo.h MipsRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/PowerPC [LLVM]:
PPCCodeEmitter.cpp PPCJITInfo.cpp PPCJITInfo.h PPCRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/Sparc [LLVM]:
SparcCodeEmitter.cpp SparcJITInfo.cpp SparcJITInfo.h
SparcRelocations.h
src/external/bsd/llvm/dist/llvm/lib/Target/X86 [LLVM]:
X86AtomicExpandPass.cpp 

CVS commit: src/external/gpl3

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 21:12:10 UTC 2015

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

Log Message:
libgcc_s is linked in the specs already, don't do it explicitly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.19 -r1.20 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.old/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile:1.2 src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile:1.3
--- src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile:1.2	Sat Jun 14 20:49:37 2014
+++ src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile	Thu Jan 29 21:12:10 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2014/06/14 20:49:37 mrg Exp $
+#	$NetBSD: Makefile,v 1.3 2015/01/29 21:12:10 joerg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -8,7 +8,6 @@ NOLINT=		# defined
 .include Makefile.inc
 
 LIB=		stdc++
-LDADD=		-lgcc_s
 
 LIBDPLIBS+=	m ${.CURDIR}/../../../../../lib/libm
 

Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.19 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.20
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.19	Fri Oct 10 10:10:41 2014
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile	Thu Jan 29 21:12:10 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2014/10/10 10:10:41 mrg Exp $
+#	$NetBSD: Makefile,v 1.20 2015/01/29 21:12:10 joerg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -8,7 +8,6 @@ NOLINT=		# defined
 .include Makefile.inc
 
 LIB=		stdc++
-LDADD=		-lgcc_s
 
 LIBDPLIBS+=	m ${.CURDIR}/../../../../../lib/libm
 



CVS commit: src

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:41:39 UTC 2015

Modified Files:
src/external/bsd/llvm: Makefile.inc
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: config.h.in llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/include: Makefile
src/external/bsd/llvm/lib: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfo: Makefile
src/external/bsd/llvm/lib/libLLVMExecutionEngine: Makefile
src/external/bsd/llvm/lib/libLLVMIR: Makefile
src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile
src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMObjCARC: Makefile
src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMProfileData: Makefile
src/external/bsd/llvm/lib/libLLVMRuntimeDyld: Makefile
src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile
src/external/bsd/llvm/lib/libLLVMSelectionDAG: Makefile
src/external/bsd/llvm/lib/libLLVMSparcCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMSupport: Makefile
src/external/bsd/llvm/lib/libLLVMTarget: Makefile
src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile
src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMipa: Makefile
src/external/bsd/llvm/lib/libclangAST: Makefile
src/external/bsd/llvm/lib/libclangAnalysis: Makefile
src/external/bsd/llvm/lib/libclangBasic: Makefile
src/external/bsd/llvm/lib/libclangCodeGen: Makefile
src/external/bsd/llvm/lib/libclangDriver: Makefile
src/external/bsd/llvm/lib/libclangFormat: Makefile
src/external/bsd/llvm/lib/libclangFrontend: Makefile
src/external/bsd/llvm/lib/libclangSema: Makefile
src/external/bsd/llvm/lib/libclangStaticAnalyzerFrontend: Makefile
src/external/bsd/llvm/lib/liblldDriver: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFMips: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFX86: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterMachO: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterPECOFF: Makefile
src/external/bsd/llvm/lib/liblldbAPI: Makefile
src/external/bsd/llvm/lib/liblldbCore: Makefile
src/external/bsd/llvm/lib/liblldbDataFormatters: Makefile
src/external/bsd/llvm/lib/liblldbExpression: Makefile
src/external/bsd/llvm/lib/liblldbHostCommon: Makefile
src/external/bsd/llvm/lib/liblldbInterpreter: Makefile
src/external/bsd/llvm/lib/liblldbPluginAppleObjCRuntime: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessElfCore: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessPOSIX: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessUtility: Makefile
src/external/bsd/llvm/lib/liblldbSymbol: Makefile
src/external/bsd/llvm/lib/liblldbTarget: Makefile
src/external/bsd/llvm/lib/liblldbUtility: Makefile
Added Files:
src/external/bsd/llvm/lib/libclangToolingCore: Makefile
src/external/bsd/llvm/lib/liblldConfig: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFAArch64: Makefile
src/external/bsd/llvm/lib/liblldbPluginABISysV_ppc: Makefile
src/external/bsd/llvm/lib/liblldbPluginABISysV_ppc64: Makefile
src/tools/llvm-lib/liblldConfig: Makefile
src/tools/llvm-lib/liblldReaderWriterELFAArch64: Makefile
Removed Files:
src/external/bsd/llvm/lib/libLLVMJIT: Makefile
src/external/bsd/llvm/lib/libLLVMMCAnalysis: Makefile

Log Message:
Update build system glue for LLVM 3.6RC1. Notable changes:

- Old JIT is removed.
- Improvements to debug information handling.
- ARM: check for deprecated instructions and warn in the integrated
  assembler
- PPC: VSX support, va_arg 

CVS commit: src

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:41:39 UTC 2015

Modified Files:
src/external/bsd/llvm: Makefile.inc
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: config.h.in llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/include: Makefile
src/external/bsd/llvm/lib: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfo: Makefile
src/external/bsd/llvm/lib/libLLVMExecutionEngine: Makefile
src/external/bsd/llvm/lib/libLLVMIR: Makefile
src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile
src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMObjCARC: Makefile
src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMProfileData: Makefile
src/external/bsd/llvm/lib/libLLVMRuntimeDyld: Makefile
src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile
src/external/bsd/llvm/lib/libLLVMSelectionDAG: Makefile
src/external/bsd/llvm/lib/libLLVMSparcCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMSupport: Makefile
src/external/bsd/llvm/lib/libLLVMTarget: Makefile
src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile
src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMipa: Makefile
src/external/bsd/llvm/lib/libclangAST: Makefile
src/external/bsd/llvm/lib/libclangAnalysis: Makefile
src/external/bsd/llvm/lib/libclangBasic: Makefile
src/external/bsd/llvm/lib/libclangCodeGen: Makefile
src/external/bsd/llvm/lib/libclangDriver: Makefile
src/external/bsd/llvm/lib/libclangFormat: Makefile
src/external/bsd/llvm/lib/libclangFrontend: Makefile
src/external/bsd/llvm/lib/libclangSema: Makefile
src/external/bsd/llvm/lib/libclangStaticAnalyzerFrontend: Makefile
src/external/bsd/llvm/lib/liblldDriver: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFMips: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFX86: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterMachO: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterPECOFF: Makefile
src/external/bsd/llvm/lib/liblldbAPI: Makefile
src/external/bsd/llvm/lib/liblldbCore: Makefile
src/external/bsd/llvm/lib/liblldbDataFormatters: Makefile
src/external/bsd/llvm/lib/liblldbExpression: Makefile
src/external/bsd/llvm/lib/liblldbHostCommon: Makefile
src/external/bsd/llvm/lib/liblldbInterpreter: Makefile
src/external/bsd/llvm/lib/liblldbPluginAppleObjCRuntime: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessElfCore: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessPOSIX: Makefile
src/external/bsd/llvm/lib/liblldbPluginProcessUtility: Makefile
src/external/bsd/llvm/lib/liblldbSymbol: Makefile
src/external/bsd/llvm/lib/liblldbTarget: Makefile
src/external/bsd/llvm/lib/liblldbUtility: Makefile
Added Files:
src/external/bsd/llvm/lib/libclangToolingCore: Makefile
src/external/bsd/llvm/lib/liblldConfig: Makefile
src/external/bsd/llvm/lib/liblldReaderWriterELFAArch64: Makefile
src/external/bsd/llvm/lib/liblldbPluginABISysV_ppc: Makefile
src/external/bsd/llvm/lib/liblldbPluginABISysV_ppc64: Makefile
src/tools/llvm-lib/liblldConfig: Makefile
src/tools/llvm-lib/liblldReaderWriterELFAArch64: Makefile
Removed Files:
src/external/bsd/llvm/lib/libLLVMJIT: Makefile
src/external/bsd/llvm/lib/libLLVMMCAnalysis: Makefile

Log Message:
Update build system glue for LLVM 3.6RC1. Notable changes:

- Old JIT is removed.
- Improvements to debug information handling.
- ARM: check for deprecated instructions and warn in the integrated
  assembler
- PPC: VSX support, va_arg 

CVS commit: src/lib/libc

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:44:39 UTC 2015

Modified Files:
src/lib/libc/compat/sys: compat___semctl13.c compat_semctl.c
src/lib/libc/sys: semctl.c

Log Message:
Remove va_arg hack for Clang/PPC.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/compat/sys/compat___semctl13.c \
src/lib/libc/compat/sys/compat_semctl.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/sys/semctl.c

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



CVS commit: src/bin/ksh

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:46:31 UTC 2015

Modified Files:
src/bin/ksh: Makefile

Log Message:
Make cast warnings for clang non-fatal.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/bin/ksh/Makefile

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

Modified files:

Index: src/bin/ksh/Makefile
diff -u src/bin/ksh/Makefile:1.30 src/bin/ksh/Makefile:1.31
--- src/bin/ksh/Makefile:1.30	Sun Oct 16 17:12:11 2011
+++ src/bin/ksh/Makefile	Thu Jan 29 20:46:31 2015
@@ -1,6 +1,7 @@
-#	$NetBSD: Makefile,v 1.30 2011/10/16 17:12:11 joerg Exp $
+#	$NetBSD: Makefile,v 1.31 2015/01/29 20:46:31 joerg Exp $
 
 WARNS=3
+CWARNFLAGS.clang+=	-Wno-error=cast-qual
 
 .include bsd.own.mk
 



CVS commit: src/distrib/sets/lists/comp

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:46:10 UTC 2015

Modified Files:
src/distrib/sets/lists/comp: md.amd64 md.i386

Log Message:
Update set lists for LLVM 3.6RC1.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.151 -r1.152 src/distrib/sets/lists/comp/md.i386

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



CVS commit: src/doc

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:45:41 UTC 2015

Modified Files:
src/doc: TODO.clang

Log Message:
Sync list of hacks with reality.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/doc/TODO.clang

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

Modified files:

Index: src/doc/TODO.clang
diff -u src/doc/TODO.clang:1.14 src/doc/TODO.clang:1.15
--- src/doc/TODO.clang:1.14	Wed Aug 13 14:43:48 2014
+++ src/doc/TODO.clang	Thu Jan 29 20:45:41 2015
@@ -1,4 +1,4 @@
-$NetBSD: TODO.clang,v 1.14 2014/08/13 14:43:48 joerg Exp $
+$NetBSD: TODO.clang,v 1.15 2015/01/29 20:45:41 joerg Exp $
 
 Hacks for the clang integration
 ---
@@ -6,17 +6,8 @@ Hacks for the clang integration
 -no-integrated-as is used in src/sys/arch/i386/stand to compensate
 for the incomplete explicit positioning support in LLVM MC.
 
-Workaround for .fpu handling in src/sys/lib/libunwind for ARM by forcing
-GNU as.
-
 src/external/gpl3/gcc/usr.bin/backend forces tree.c to be compiled with -O0.
-g++ otherwise on trivial input.
+g++ otherwise crashes on trivial input.
 
 src/external/mit/xorg/lib/pixman uses -fno-integrated-as on ARM for the
 macro (ab)use.
-
-Clang does support union arguments for va_arg on 32bit PowerPC, hack
-around to get the files to compiles are in:
-lib/libc/compat/sys/compat___semctl13.c
-lib/libc/compat/sys/compat_semctl.c
-lib/libc/sys/semctl.c



CVS commit: src/distrib/sets/lists/comp

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:46:10 UTC 2015

Modified Files:
src/distrib/sets/lists/comp: md.amd64 md.i386

Log Message:
Update set lists for LLVM 3.6RC1.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.151 -r1.152 src/distrib/sets/lists/comp/md.i386

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

Modified files:

Index: src/distrib/sets/lists/comp/md.amd64
diff -u src/distrib/sets/lists/comp/md.amd64:1.229 src/distrib/sets/lists/comp/md.amd64:1.230
--- src/distrib/sets/lists/comp/md.amd64:1.229	Sun Jan 25 15:50:30 2015
+++ src/distrib/sets/lists/comp/md.amd64	Thu Jan 29 20:46:10 2015
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.229 2015/01/25 15:50:30 christos Exp $
+# $NetBSD: md.amd64,v 1.230 2015/01/29 20:46:10 joerg Exp $
 
 ./usr/include/amd64comp-c-include
 ./usr/include/amd64/ansi.h			comp-c-include
@@ -134,9 +134,13 @@
 ./usr/include/clang-3.6/__wmmintrin_aes.h	comp-c-include		llvm
 ./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-c-include		llvm
 ./usr/include/clang-3.6/ammintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/adxintrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/avx2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/avx512bwintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avx512erintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avx512fintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/avx512vlbwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.6/avx512vlintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avxintrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/bmi2intrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/bmiintrin.h		comp-c-include		llvm

Index: src/distrib/sets/lists/comp/md.i386
diff -u src/distrib/sets/lists/comp/md.i386:1.151 src/distrib/sets/lists/comp/md.i386:1.152
--- src/distrib/sets/lists/comp/md.i386:1.151	Fri Nov 14 15:59:46 2014
+++ src/distrib/sets/lists/comp/md.i386	Thu Jan 29 20:46:10 2015
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.151 2014/11/14 15:59:46 joerg Exp $
+# $NetBSD: md.i386,v 1.152 2015/01/29 20:46:10 joerg Exp $
 ./usr/include/clang-3.4/__wmmintrin_aes.h	comp-obsolete		obsolete
 ./usr/include/clang-3.4/__wmmintrin_pclmul.h	comp-obsolete		obsolete
 ./usr/include/clang-3.4/ammintrin.h		comp-obsolete		obsolete
@@ -63,9 +63,13 @@
 ./usr/include/clang-3.6/__wmmintrin_aes.h	comp-c-include		llvm
 ./usr/include/clang-3.6/__wmmintrin_pclmul.h	comp-c-include		llvm
 ./usr/include/clang-3.6/ammintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/adxintrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/avx2intrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/avx512bwintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avx512erintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avx512fintrin.h		comp-c-include		llvm
+./usr/include/clang-3.6/avx512vlbwintrin.h	comp-c-include		llvm
+./usr/include/clang-3.6/avx512vlintrin.h	comp-c-include		llvm
 ./usr/include/clang-3.6/avxintrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/bmi2intrin.h		comp-c-include		llvm
 ./usr/include/clang-3.6/bmiintrin.h		comp-c-include		llvm



CVS commit: src/doc

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:45:41 UTC 2015

Modified Files:
src/doc: TODO.clang

Log Message:
Sync list of hacks with reality.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/doc/TODO.clang

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



CVS commit: src/lib/libc

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:44:39 UTC 2015

Modified Files:
src/lib/libc/compat/sys: compat___semctl13.c compat_semctl.c
src/lib/libc/sys: semctl.c

Log Message:
Remove va_arg hack for Clang/PPC.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/compat/sys/compat___semctl13.c \
src/lib/libc/compat/sys/compat_semctl.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/sys/semctl.c

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

Modified files:

Index: src/lib/libc/compat/sys/compat___semctl13.c
diff -u src/lib/libc/compat/sys/compat___semctl13.c:1.5 src/lib/libc/compat/sys/compat___semctl13.c:1.6
--- src/lib/libc/compat/sys/compat___semctl13.c:1.5	Wed Aug 13 14:43:48 2014
+++ src/lib/libc/compat/sys/compat___semctl13.c	Thu Jan 29 20:44:38 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat___semctl13.c,v 1.5 2014/08/13 14:43:48 joerg Exp $ */
+/*	$NetBSD: compat___semctl13.c,v 1.6 2015/01/29 20:44:38 joerg Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: compat___semctl13.c,v 1.5 2014/08/13 14:43:48 joerg Exp $);
+__RCSID($NetBSD: compat___semctl13.c,v 1.6 2015/01/29 20:44:38 joerg Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #include namespace.h
@@ -47,9 +47,6 @@ __RCSID($NetBSD: compat___semctl13.c,v 
 #include compat/sys/time.h
 #include sys/sem.h
 #include compat/sys/sem.h
-#if defined(__clang__)  defined(__powerpc__)  !defined(__powerpc64__)
-#define __lint__
-#endif
 #ifdef __lint__
 #include string.h
 #endif
Index: src/lib/libc/compat/sys/compat_semctl.c
diff -u src/lib/libc/compat/sys/compat_semctl.c:1.5 src/lib/libc/compat/sys/compat_semctl.c:1.6
--- src/lib/libc/compat/sys/compat_semctl.c:1.5	Wed Aug 13 14:43:48 2014
+++ src/lib/libc/compat/sys/compat_semctl.c	Thu Jan 29 20:44:38 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_semctl.c,v 1.5 2014/08/13 14:43:48 joerg Exp $ */
+/* $NetBSD: compat_semctl.c,v 1.6 2015/01/29 20:44:38 joerg Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: compat_semctl.c,v 1.5 2014/08/13 14:43:48 joerg Exp $);
+__RCSID($NetBSD: compat_semctl.c,v 1.6 2015/01/29 20:44:38 joerg Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #define __LIBC12_SOURCE__
@@ -46,9 +46,6 @@ __RCSID($NetBSD: compat_semctl.c,v 1.5 
 #include sys/null.h
 #include compat/sys/sem.h
 #include stdarg.h
-#if defined(__clang__)  defined(__powerpc__)  !defined(__powerpc64__)
-#define __lint__
-#endif
 #ifdef __lint__
 #include string.h
 #endif

Index: src/lib/libc/sys/semctl.c
diff -u src/lib/libc/sys/semctl.c:1.17 src/lib/libc/sys/semctl.c:1.18
--- src/lib/libc/sys/semctl.c:1.17	Wed Aug 13 14:43:48 2014
+++ src/lib/libc/sys/semctl.c	Thu Jan 29 20:44:38 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: semctl.c,v 1.17 2014/08/13 14:43:48 joerg Exp $	*/
+/*	$NetBSD: semctl.c,v 1.18 2015/01/29 20:44:38 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,16 +30,13 @@
  */
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: semctl.c,v 1.17 2014/08/13 14:43:48 joerg Exp $);
+__RCSID($NetBSD: semctl.c,v 1.18 2015/01/29 20:44:38 joerg Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #include sys/types.h
 #include sys/ipc.h
 #include sys/sem.h
 #include stdarg.h
-#if defined(__clang__)  defined(__powerpc__)  !defined(__powerpc64__)
-#define __lint__
-#endif
 #ifdef __lint__
 #include string.h
 #endif



CVS commit: src/sys/lib/libunwind

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:45:16 UTC 2015

Modified Files:
src/sys/lib/libunwind: Makefile.inc

Log Message:
Force FPU support for Clang, don't disable IAS completely.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libunwind/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/sys/lib/libunwind/Makefile.inc
diff -u src/sys/lib/libunwind/Makefile.inc:1.10 src/sys/lib/libunwind/Makefile.inc:1.11
--- src/sys/lib/libunwind/Makefile.inc:1.10	Thu Oct 23 17:51:22 2014
+++ src/sys/lib/libunwind/Makefile.inc	Thu Jan 29 20:45:16 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.10 2014/10/23 17:51:22 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.11 2015/01/29 20:45:16 joerg Exp $
 
 .PATH:	${NETBSDSRCDIR}/sys/lib/libunwind
 
@@ -13,6 +13,6 @@ COPTS.libunwind.cxx+=	-fno-exceptions -f
 COPTS.libunwind.cxx+=	-Wno-old-style-cast
 CPPFLAGS.libunwind.cxx+=-I${NETBSDSRCDIR}/sys/lib/libunwind
 
-.if ${MACHINE_CPU} == arm
-AFLAGS.unwind_registers.S+=	${${ACTIVE_CC} == clang:? -no-integrated-as :}
+.if ${LIBC_MACHINE_CPU} == arm
+AFLAGS.unwind_registers.S+=	${${ACTIVE_CC} == clang:? -mfpu=vfp3 :}
 .endif



CVS commit: src/distrib/macppc/floppies/bootfloppy

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:47:12 UTC 2015

Modified Files:
src/distrib/macppc/floppies/bootfloppy: Makefile

Log Message:
Allow clang builds to use a third floppy.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/distrib/macppc/floppies/bootfloppy/Makefile

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



CVS commit: src/sys/lib/libunwind

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:05:56 UTC 2015

Modified Files:
src/sys/lib/libunwind: AddressSpace.hpp

Log Message:
Fix binary search when search value is in the last block, but not equal
to the start of the range. PR 49444.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/lib/libunwind/AddressSpace.hpp

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

Modified files:

Index: src/sys/lib/libunwind/AddressSpace.hpp
diff -u src/sys/lib/libunwind/AddressSpace.hpp:1.7 src/sys/lib/libunwind/AddressSpace.hpp:1.8
--- src/sys/lib/libunwind/AddressSpace.hpp:1.7	Sun Jul 20 14:40:58 2014
+++ src/sys/lib/libunwind/AddressSpace.hpp	Thu Jan 29 20:05:56 2015
@@ -263,21 +263,19 @@ public:
 
 pint_t base = n-hdr_base;
 pint_t first = n-hdr_start;
-pint_t len = n-hdr_entries;
-while (len) {
-  pint_t next = first + ((len + 1) / 2) * 8;
+for (pint_t len = n-hdr_entries; len  1; ) {
+  pint_t next = first + (len / 2) * 8;
   pint_t nextPC = base + (int32_t)get32(next);
   if (nextPC == pc) {
 first = next;
 break;
   }
   if (nextPC  pc) {
-len -= (len + 1) / 2;
 first = next;
-  } else if (len == 1)
-break;
-  else
-len = (len + 1) / 2;
+len -= (len / 2);
+  } else {
+len /= 2;
+  }
 }
 fdeStart = base + (int32_t)get32(first + 4);
 data_base = n-data_base;



CVS commit: src/sys/lib/libunwind

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:05:56 UTC 2015

Modified Files:
src/sys/lib/libunwind: AddressSpace.hpp

Log Message:
Fix binary search when search value is in the last block, but not equal
to the start of the range. PR 49444.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/lib/libunwind/AddressSpace.hpp

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



CVS commit: src/sys/lib/libunwind

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:45:16 UTC 2015

Modified Files:
src/sys/lib/libunwind: Makefile.inc

Log Message:
Force FPU support for Clang, don't disable IAS completely.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libunwind/Makefile.inc

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



CVS commit: src/lib/libedit

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:30:02 UTC 2015

Modified Files:
src/lib/libedit: Makefile

Log Message:
Disable -Wcast-qual for clang for now.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/libedit/Makefile

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

Modified files:

Index: src/lib/libedit/Makefile
diff -u src/lib/libedit/Makefile:1.52 src/lib/libedit/Makefile:1.53
--- src/lib/libedit/Makefile:1.52	Sat Jun 14 20:49:37 2014
+++ src/lib/libedit/Makefile	Thu Jan 29 20:30:02 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.52 2014/06/14 20:49:37 mrg Exp $
+#	$NetBSD: Makefile,v 1.53 2015/01/29 20:30:02 joerg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=	yes
@@ -13,6 +13,7 @@ LIBDPLIBS+= terminfo ${.CURDIR}/../l
 
 COPTS+=	-Wunused-parameter
 CWARNFLAGS.gcc+=	-Wconversion
+CWARNFLAGS.clang+=	-Wno-cast-qual
 
 OSRCS=	chared.c common.c el.c emacs.c fcns.c filecomplete.c help.c \
 	hist.c keymacro.c map.c chartype.c \



CVS commit: src/lib/libedit

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:30:02 UTC 2015

Modified Files:
src/lib/libedit: Makefile

Log Message:
Disable -Wcast-qual for clang for now.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/libedit/Makefile

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



CVS commit: src/distrib/macppc/floppies/bootfloppy

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:47:12 UTC 2015

Modified Files:
src/distrib/macppc/floppies/bootfloppy: Makefile

Log Message:
Allow clang builds to use a third floppy.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/distrib/macppc/floppies/bootfloppy/Makefile

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

Modified files:

Index: src/distrib/macppc/floppies/bootfloppy/Makefile
diff -u src/distrib/macppc/floppies/bootfloppy/Makefile:1.27 src/distrib/macppc/floppies/bootfloppy/Makefile:1.28
--- src/distrib/macppc/floppies/bootfloppy/Makefile:1.27	Thu Jul 10 10:34:07 2003
+++ src/distrib/macppc/floppies/bootfloppy/Makefile	Thu Jan 29 20:47:12 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.27 2003/07/10 10:34:07 lukem Exp $
+#	$NetBSD: Makefile,v 1.28 2015/01/29 20:47:12 joerg Exp $
 
 .include bsd.own.mk
 .include ${NETBSDSRCDIR}/distrib/common/Makefile.distrib
@@ -6,7 +6,7 @@
 FLOPPYBASE=	boot
 FLOPPYSIZE=	2880
 FLOPPYFILES=	boot netbsd
-FLOPPYMAX=	2
+FLOPPYMAX=	3
 FLOPPYSUFFIX=	.fs
 
 FLOPPY_RELEASEDIR=	installation/floppy



CVS commit: src/bin/ksh

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 20:46:31 UTC 2015

Modified Files:
src/bin/ksh: Makefile

Log Message:
Make cast warnings for clang non-fatal.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/bin/ksh/Makefile

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



CVS commit: xsrc/external/mit/glu/dist/src/libtess

2015-01-29 Thread Nathanial Sloss
Module Name:xsrc
Committed By:   nat
Date:   Thu Jan 29 22:48:18 UTC 2015

Modified Files:
xsrc/external/mit/glu/dist/src/libtess: sweep.c

Log Message:
Fixes segfaults and crashing in applications that use libGLU.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/glu/dist/src/libtess/sweep.c

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



CVS commit: xsrc/external/mit/glu/dist/src/libtess

2015-01-29 Thread Nathanial Sloss
Module Name:xsrc
Committed By:   nat
Date:   Thu Jan 29 22:48:18 UTC 2015

Modified Files:
xsrc/external/mit/glu/dist/src/libtess: sweep.c

Log Message:
Fixes segfaults and crashing in applications that use libGLU.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/glu/dist/src/libtess/sweep.c

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

Modified files:

Index: xsrc/external/mit/glu/dist/src/libtess/sweep.c
diff -u xsrc/external/mit/glu/dist/src/libtess/sweep.c:1.1.1.1 xsrc/external/mit/glu/dist/src/libtess/sweep.c:1.2
--- xsrc/external/mit/glu/dist/src/libtess/sweep.c:1.1.1.1	Tue Dec 16 06:01:15 2014
+++ xsrc/external/mit/glu/dist/src/libtess/sweep.c	Thu Jan 29 22:48:18 2015
@@ -546,7 +546,9 @@ static int CheckForRightSplice( GLUtesse
 if( EdgeSign( eUp-Dst, eLo-Org, eUp-Org )  0 ) return FALSE;
 
 /* eLo-Org appears to be above eUp, so splice eLo-Org into eUp */
-RegionAbove(regUp)-dirty = regUp-dirty = TRUE;
+if (RegionAbove(regUp))
+RegionAbove(regUp)-dirty = TRUE;
+regUp-dirty = TRUE;
 if (__gl_meshSplitEdge( eUp-Sym ) == NULL) longjmp(tess-env,1);
 if ( !__gl_meshSplice( eLo-Oprev, eUp ) ) longjmp(tess-env,1);
   }
@@ -584,7 +586,9 @@ static int CheckForLeftSplice( GLUtessel
 if( EdgeSign( eUp-Dst, eLo-Dst, eUp-Org )  0 ) return FALSE;
 
 /* eLo-Dst is above eUp, so splice eLo-Dst into eUp */
-RegionAbove(regUp)-dirty = regUp-dirty = TRUE;
+if (RegionAbove(regUp))
+RegionAbove(regUp)-dirty = TRUE;
+regUp-dirty = TRUE;
 e = __gl_meshSplitEdge( eUp );
 if (e == NULL) longjmp(tess-env,1);
 if ( !__gl_meshSplice( eLo-Sym, e ) ) longjmp(tess-env,1);
@@ -718,7 +722,9 @@ static int CheckForIntersect( GLUtessela
  * (and wait for ConnectRightVertex to splice it appropriately).
  */
 if( EdgeSign( dstUp, tess-event, isect ) = 0 ) {
-  RegionAbove(regUp)-dirty = regUp-dirty = TRUE;
+  if (RegionAbove(regUp))
+  RegionAbove(regUp)-dirty = TRUE;
+  regUp-dirty = TRUE;
   if (__gl_meshSplitEdge( eUp-Sym ) == NULL) longjmp(tess-env,1);
   eUp-Org-s = tess-event-s;
   eUp-Org-t = tess-event-t;
@@ -753,7 +759,9 @@ static int CheckForIntersect( GLUtessela
  longjmp(tess-env,1);
   }
   GetIntersectData( tess, eUp-Org, orgUp, dstUp, orgLo, dstLo );
-  RegionAbove(regUp)-dirty = regUp-dirty = regLo-dirty = TRUE;
+  if (RegionAbove(regUp))
+  RegionAbove(regUp)-dirty = TRUE;
+  regUp-dirty = regLo-dirty = TRUE;
   return FALSE;
 }
 



CVS commit: src/external/mit/xorg/lib/libGLU

2015-01-29 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Thu Jan 29 22:51:56 UTC 2015

Modified Files:
src/external/mit/xorg/lib/libGLU: shlib_version

Log Message:
Fixes segfaults and crashing in applications that use libGLU.
Minor version bump.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/libGLU/shlib_version

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



CVS commit: src/external/mit/xorg/lib/libGLU

2015-01-29 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Thu Jan 29 22:51:56 UTC 2015

Modified Files:
src/external/mit/xorg/lib/libGLU: shlib_version

Log Message:
Fixes segfaults and crashing in applications that use libGLU.
Minor version bump.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/libGLU/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/mit/xorg/lib/libGLU/shlib_version
diff -u src/external/mit/xorg/lib/libGLU/shlib_version:1.2 src/external/mit/xorg/lib/libGLU/shlib_version:1.3
--- src/external/mit/xorg/lib/libGLU/shlib_version:1.2	Sun Jan 11 03:10:10 2009
+++ src/external/mit/xorg/lib/libGLU/shlib_version	Thu Jan 29 22:51:55 2015
@@ -1,5 +1,5 @@
-#	$NetBSD: shlib_version,v 1.2 2009/01/11 03:10:10 christos Exp $
+#	$NetBSD: shlib_version,v 1.3 2015/01/29 22:51:55 nat Exp $
 #
 # XXX netbsd-4 had minor=3
 major=2
-minor=0
+minor=1



CVS commit: src/distrib/sets/lists

2015-01-29 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Thu Jan 29 22:58:20 UTC 2015

Modified Files:
src/distrib/sets/lists/xbase: shl.mi
src/distrib/sets/lists/xdebug: shl.mi

Log Message:
Fixes segfaults and crashing for applications that use libGLU.
Minor revision bump for libGLU.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/distrib/sets/lists/xbase/shl.mi
cvs rdiff -u -r1.18 -r1.19 src/distrib/sets/lists/xdebug/shl.mi

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



CVS commit: src/distrib/sets/lists

2015-01-29 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Thu Jan 29 22:58:20 UTC 2015

Modified Files:
src/distrib/sets/lists/xbase: shl.mi
src/distrib/sets/lists/xdebug: shl.mi

Log Message:
Fixes segfaults and crashing for applications that use libGLU.
Minor revision bump for libGLU.

This commit was approved by wiz@


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/distrib/sets/lists/xbase/shl.mi
cvs rdiff -u -r1.18 -r1.19 src/distrib/sets/lists/xdebug/shl.mi

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

Modified files:

Index: src/distrib/sets/lists/xbase/shl.mi
diff -u src/distrib/sets/lists/xbase/shl.mi:1.57 src/distrib/sets/lists/xbase/shl.mi:1.58
--- src/distrib/sets/lists/xbase/shl.mi:1.57	Thu Dec 18 06:24:27 2014
+++ src/distrib/sets/lists/xbase/shl.mi	Thu Jan 29 22:58:20 2015
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.57 2014/12/18 06:24:27 mrg Exp $
+# $NetBSD: shl.mi,v 1.58 2015/01/29 22:58:20 nat Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -173,7 +173,7 @@
 ./usr/X11R7/lib/libGL.so.2.0			-unknown-		xorg
 ./usr/X11R7/lib/libGLU.so			-unknown-		xorg
 ./usr/X11R7/lib/libGLU.so.2			-unknown-		xorg
-./usr/X11R7/lib/libGLU.so.2.0			-unknown-		xorg
+./usr/X11R7/lib/libGLU.so.2.1			-unknown-		xorg
 ./usr/X11R7/lib/libGLw.so			-unknown-		xorg
 ./usr/X11R7/lib/libGLw.so.2			-unknown-		xorg
 ./usr/X11R7/lib/libGLw.so.2.0			-unknown-		xorg

Index: src/distrib/sets/lists/xdebug/shl.mi
diff -u src/distrib/sets/lists/xdebug/shl.mi:1.18 src/distrib/sets/lists/xdebug/shl.mi:1.19
--- src/distrib/sets/lists/xdebug/shl.mi:1.18	Mon Jan  5 03:45:31 2015
+++ src/distrib/sets/lists/xdebug/shl.mi	Thu Jan 29 22:58:20 2015
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.18 2015/01/05 03:45:31 mrg Exp $
+# $NetBSD: shl.mi,v 1.19 2015/01/29 22:58:20 nat Exp $
 ./usr/libdata/debug/usr/X11R6/lib/libFS.so.6.0.debug			-unknown-		x11,debug
 ./usr/libdata/debug/usr/X11R6/lib/libGL.so.1.2.debug			-unknown-		x11,debug
 ./usr/libdata/debug/usr/X11R6/lib/libGLU.so.1.3.debug			-unknown-		x11,debug
@@ -60,7 +60,7 @@
 ./usr/libdata/debug/usr/X11R7/lib/X11/locale/lib/common/xomGeneric.so.2.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libFS.so.7.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libGL.so.2.0.debug	-unknown-		xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/libGLU.so.2.0.debug	-unknown-		xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/libGLU.so.2.1.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libGLw.so.2.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libICE.so.7.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libOSMesa.so.7.0.debug	-unknown-		obsolete



CVS commit: src/external/bsd/libevent/dist

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Jan 30 00:07:06 UTC 2015

Modified Files:
src/external/bsd/libevent/dist: log.c

Log Message:
Add missing __printflike


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/libevent/dist/log.c

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



CVS commit: src/external/bsd/libevent/dist

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Jan 30 00:07:06 UTC 2015

Modified Files:
src/external/bsd/libevent/dist: log.c

Log Message:
Add missing __printflike


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/libevent/dist/log.c

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/libevent/dist/log.c
diff -u src/external/bsd/libevent/dist/log.c:1.3 src/external/bsd/libevent/dist/log.c:1.4
--- src/external/bsd/libevent/dist/log.c:1.3	Thu Jan 29 07:26:02 2015
+++ src/external/bsd/libevent/dist/log.c	Fri Jan 30 00:07:06 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: log.c,v 1.3 2015/01/29 07:26:02 spz Exp $	*/
+/*	$NetBSD: log.c,v 1.4 2015/01/30 00:07:06 joerg Exp $	*/
 /*	$OpenBSD: err.c,v 1.2 2002/06/25 15:50:15 mickey Exp $	*/
 
 /*
@@ -40,7 +40,7 @@
 
 #include event2/event-config.h
 #include sys/cdefs.h
-__RCSID($NetBSD: log.c,v 1.3 2015/01/29 07:26:02 spz Exp $);
+__RCSID($NetBSD: log.c,v 1.4 2015/01/30 00:07:06 joerg Exp $);
 
 #ifdef WIN32
 #include winsock2.h
@@ -60,7 +60,7 @@ __RCSID($NetBSD: log.c,v 1.3 2015/01/29
 #include log-internal.h
 
 static void _warn_helper(int severity, const char *errstr, const char *fmt,
-va_list ap);
+va_list ap) __printflike(3, 0);
 static void event_log(int severity, const char *msg);
 static void event_exit(int errcode) EV_NORETURN;
 



CVS commit: src/external/bsd/llvm

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 23:14:48 UTC 2015

Modified Files:
src/external/bsd/llvm: Makefile.inc

Log Message:
Don't complain if OCaml is installed, but certain extensions for the
binding are missing.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/external/bsd/llvm/Makefile.inc

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



CVS commit: src/external/bsd/llvm

2015-01-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 29 23:14:48 UTC 2015

Modified Files:
src/external/bsd/llvm: Makefile.inc

Log Message:
Don't complain if OCaml is installed, but certain extensions for the
binding are missing.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/external/bsd/llvm/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/bsd/llvm/Makefile.inc
diff -u src/external/bsd/llvm/Makefile.inc:1.76 src/external/bsd/llvm/Makefile.inc:1.77
--- src/external/bsd/llvm/Makefile.inc:1.76	Thu Jan 29 20:41:33 2015
+++ src/external/bsd/llvm/Makefile.inc	Thu Jan 29 23:14:48 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.76 2015/01/29 20:41:33 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.77 2015/01/29 23:14:48 joerg Exp $
 
 .if !defined(LLVM_TOPLEVEL_MK)
 LLVM_TOPLEVEL_MK=
@@ -68,7 +68,7 @@ LLVM_CONFIGURE_ARGS=	\
 	--disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \
 	--with-clang-srcdir=${CLANG_SRCDIR} \
 	--host=${LLVM_PLATFORM} --disable-compiler-version-checks \
-	llvm_cv_gnu_make_command=${MAKE}
+	--disable-bindings llvm_cv_gnu_make_command=${MAKE}
 
 .for tool in circo dot dotty fdp neato twopi xdot
 LLVM_CONFIGURE_ARGS+= ac_cv_path_${tool:tu}=echo ${tool}



CVS commit: [netbsd-7] src/external/bsd/atf/dist

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 30 07:53:15 UTC 2015

Modified Files:
src/external/bsd/atf/dist/atf-c [netbsd-7]: macros_test.c
src/external/bsd/atf/dist/atf-c++ [netbsd-7]: macros_test.cpp

Log Message:
Pull up following revision(s) (requested by gson in ticket #471):
external/bsd/atf/dist/atf-c++/macros_test.cpp: revision 1.2
external/bsd/atf/dist/atf-c/macros_test.c: revision 1.5
Mark atf/atf-c/macros_test/detect_unused_tests and
atf/atf-c++/macros_test/detect_unused_tests as expected failures
when using versions of GCC where they are known to fail, with a
reference to PR toolchain/49187.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.4.1 src/external/bsd/atf/dist/atf-c/macros_test.c
cvs rdiff -u -r1.1.1.8 -r1.1.1.8.4.1 \
src/external/bsd/atf/dist/atf-c++/macros_test.cpp

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/atf/dist/atf-c/macros_test.c
diff -u src/external/bsd/atf/dist/atf-c/macros_test.c:1.4 src/external/bsd/atf/dist/atf-c/macros_test.c:1.4.4.1
--- src/external/bsd/atf/dist/atf-c/macros_test.c:1.4	Sat Feb  8 19:13:43 2014
+++ src/external/bsd/atf/dist/atf-c/macros_test.c	Fri Jan 30 07:53:15 2015
@@ -863,6 +863,10 @@ ATF_TC_BODY(detect_unused_tests, tc)
 atf_tc_expect_fail(Compiler does not raise a warning on an unused 
static global variable declared by a macro);
 
+#if __GNUC__  4 || (__GNUC__ == 4  __GNUC_MINOR__ = 8)
+atf_tc_expect_fail(PR 49187);
+#endif
+
 if (build_check_c_o_srcdir(tc, unused_test.c))
 atf_tc_fail(Build of unused_test.c passed; unused test cases are 
 not properly detected);

Index: src/external/bsd/atf/dist/atf-c++/macros_test.cpp
diff -u src/external/bsd/atf/dist/atf-c++/macros_test.cpp:1.1.1.8 src/external/bsd/atf/dist/atf-c++/macros_test.cpp:1.1.1.8.4.1
--- src/external/bsd/atf/dist/atf-c++/macros_test.cpp:1.1.1.8	Sat Feb  8 19:11:31 2014
+++ src/external/bsd/atf/dist/atf-c++/macros_test.cpp	Fri Jan 30 07:53:15 2015
@@ -783,6 +783,10 @@ ATF_TEST_CASE_BODY(detect_unused_tests)
 expect_fail(Compiler does not raise a warning on an unused 
 static global variable declared by a macro);
 
+#if __GNUC__  4 || (__GNUC__ == 4  __GNUC_MINOR__ = 8)
+expect_fail(PR 49187);
+#endif
+
 if (build_check_cxx_o_srcdir(*this, unused_test.cpp))
 ATF_FAIL(Build of unused_test.cpp passed; unused test cases are 
  not properly detected);



CVS commit: [netbsd-7] src/external/bsd/atf/dist

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 30 07:53:15 UTC 2015

Modified Files:
src/external/bsd/atf/dist/atf-c [netbsd-7]: macros_test.c
src/external/bsd/atf/dist/atf-c++ [netbsd-7]: macros_test.cpp

Log Message:
Pull up following revision(s) (requested by gson in ticket #471):
external/bsd/atf/dist/atf-c++/macros_test.cpp: revision 1.2
external/bsd/atf/dist/atf-c/macros_test.c: revision 1.5
Mark atf/atf-c/macros_test/detect_unused_tests and
atf/atf-c++/macros_test/detect_unused_tests as expected failures
when using versions of GCC where they are known to fail, with a
reference to PR toolchain/49187.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.4.1 src/external/bsd/atf/dist/atf-c/macros_test.c
cvs rdiff -u -r1.1.1.8 -r1.1.1.8.4.1 \
src/external/bsd/atf/dist/atf-c++/macros_test.cpp

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



CVS commit: [netbsd-7] src/doc

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 30 07:54:13 UTC 2015

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Ticket #471


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.188 -r1.1.2.189 src/doc/CHANGES-7.0

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

Modified files:

Index: src/doc/CHANGES-7.0
diff -u src/doc/CHANGES-7.0:1.1.2.188 src/doc/CHANGES-7.0:1.1.2.189
--- src/doc/CHANGES-7.0:1.1.2.188	Thu Jan 29 15:15:40 2015
+++ src/doc/CHANGES-7.0	Fri Jan 30 07:54:13 2015
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0,v 1.1.2.188 2015/01/29 15:15:40 martin Exp $
+# $NetBSD: CHANGES-7.0,v 1.1.2.189 2015/01/30 07:54:13 martin Exp $
 
 A complete list of changes from the initial NetBSD 7.0 branch on 11 Aug 2014
 until the 7.0 release:
@@ -15254,3 +15254,12 @@ distrib/utils/embedded/mkimage			1.52
 	/etc/mail/aliases.db
 	[skrll, ticket #470]
 
+external/bsd/atf/dist/atf-c++/macros_test.cpp	1.2
+external/bsd/atf/dist/atf-c/macros_test.c	1.5
+
+	Mark atf/atf-c/macros_test/detect_unused_tests and
+	atf/atf-c++/macros_test/detect_unused_tests as expected failures
+	when using versions of GCC where they are known to fail, with a
+	reference to PR toolchain/49187.
+	[gson, ticket #471]
+



CVS commit: [netbsd-7] src/doc

2015-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 30 07:54:13 UTC 2015

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Ticket #471


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.188 -r1.1.2.189 src/doc/CHANGES-7.0

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