CVS commit: src/sys/arch/mac68k/dev

2014-01-30 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jan 30 13:04:06 UTC 2014

Modified Files:
src/sys/arch/mac68k/dev: grf_compat.c

Log Message:
Add missing cast (to make it compilable)


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mac68k/dev/grf_compat.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/arch/mac68k/dev/grf_compat.c
diff -u src/sys/arch/mac68k/dev/grf_compat.c:1.23 src/sys/arch/mac68k/dev/grf_compat.c:1.24
--- src/sys/arch/mac68k/dev/grf_compat.c:1.23	Sun Jan 26 00:08:48 2014
+++ src/sys/arch/mac68k/dev/grf_compat.c	Thu Jan 30 13:04:06 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $	*/
+/*	$NetBSD: grf_compat.c,v 1.24 2014/01/30 13:04:06 martin Exp $	*/
 
 /*
  * Copyright (C) 1999 Scott Reynolds
@@ -34,7 +34,7 @@
 #include opt_grf_compat.h
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: grf_compat.c,v 1.23 2014/01/26 00:08:48 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: grf_compat.c,v 1.24 2014/01/30 13:04:06 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -316,7 +316,7 @@ grfmap(dev_t dev, struct macfb_softc *sc
 
 	len = m68k_round_page(sc-sc_dc-dc_offset + sc-sc_dc-dc_size);
 	*addrp = (void *)p-p_emul-e_vm_default_addr(p,
-	p-p_vmspace-vm_daddr, len);
+	(vaddr_t)p-p_vmspace-vm_daddr, len);
 	flags = MAP_SHARED | MAP_FIXED;
 
 	vn.v_type = VCHR;		/* XXX */



CVS commit: src

2014-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 15:04:04 UTC 2014

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/tests/lib/libc/gen: Makefile
Added Files:
src/tests/lib/libc/gen: t_floatunditf.c

Log Message:
Add test for uint64 to real long double conversion.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.559 -r1.560 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.38 -r1.39 src/tests/lib/libc/gen/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/gen/t_floatunditf.c

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/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.50 src/distrib/sets/lists/debug/mi:1.51
--- src/distrib/sets/lists/debug/mi:1.50	Mon Jan 20 02:34:20 2014
+++ src/distrib/sets/lists/debug/mi	Thu Jan 30 15:04:04 2014
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.50 2014/01/20 02:34:20 christos Exp $
+# $NetBSD: mi,v 1.51 2014/01/30 15:04:04 joerg Exp $
 
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib
@@ -1764,6 +1764,7 @@
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_closefrom.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_cpuset.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_dir.debug			tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/gen/t_floatunditf.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fmtcheck.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fnmatch.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fpclassify.debug		tests-lib-debug		debug,atf

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.559 src/distrib/sets/lists/tests/mi:1.560
--- src/distrib/sets/lists/tests/mi:1.559	Fri Jan 17 22:34:36 2014
+++ src/distrib/sets/lists/tests/mi	Thu Jan 30 15:04:04 2014
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.559 2014/01/17 22:34:36 pgoyette Exp $
+# $NetBSD: mi,v 1.560 2014/01/30 15:04:04 joerg Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1890,6 +1890,7 @@
 ./usr/tests/lib/libc/gen/t_closefrom		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_cpuset		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_dir			tests-lib-tests		atf
+./usr/tests/lib/libc/gen/t_floatunditf		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fmtcheck		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fnmatch		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpclassify		tests-lib-tests		atf

Index: src/tests/lib/libc/gen/Makefile
diff -u src/tests/lib/libc/gen/Makefile:1.38 src/tests/lib/libc/gen/Makefile:1.39
--- src/tests/lib/libc/gen/Makefile:1.38	Thu Nov  8 03:13:47 2012
+++ src/tests/lib/libc/gen/Makefile	Thu Jan 30 15:04:04 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2012/11/08 03:13:47 pgoyette Exp $
+# $NetBSD: Makefile,v 1.39 2014/01/30 15:04:04 joerg Exp $
 
 .include bsd.own.mk
 
@@ -12,6 +12,7 @@ TESTS_C+=	t_basedirname
 TESTS_C+=	t_closefrom
 TESTS_C+=	t_cpuset
 TESTS_C+=	t_dir
+TESTS_C+=	t_floatunditf
 TESTS_C+=	t_fmtcheck
 TESTS_C+=	t_fnmatch
 TESTS_C+=	t_fpclassify

Added files:

Index: src/tests/lib/libc/gen/t_floatunditf.c
diff -u /dev/null src/tests/lib/libc/gen/t_floatunditf.c:1.1
--- /dev/null	Thu Jan 30 15:04:04 2014
+++ src/tests/lib/libc/gen/t_floatunditf.c	Thu Jan 30 15:04:04 2014
@@ -0,0 +1,130 @@
+/* $NetBSD: t_floatunditf.c,v 1.1 2014/01/30 15:04:04 joerg Exp $ */
+
+/*-
+ * Copyright (c) 2014 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 

CVS commit: src/lib/libc/gen

2014-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 15:06:19 UTC 2014

Added Files:
src/lib/libc/gen: floatunditf_ieee754.c

Log Message:
Provide a simple floatunditf implementation, at least mips64 needs one.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libc/gen/floatunditf_ieee754.c

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

Added files:

Index: src/lib/libc/gen/floatunditf_ieee754.c
diff -u /dev/null src/lib/libc/gen/floatunditf_ieee754.c:1.1
--- /dev/null	Thu Jan 30 15:06:19 2014
+++ src/lib/libc/gen/floatunditf_ieee754.c	Thu Jan 30 15:06:18 2014
@@ -0,0 +1,81 @@
+/*	$NetBSD: floatunditf_ieee754.c,v 1.1 2014/01/30 15:06:18 joerg Exp $	*/
+
+/*-
+ * Copyright (c) 2014 Joerg Sonnenberger jo...@netbsd.org.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in
+ *the documentation and/or other materials provided with the
+ *distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include sys/cdefs.h
+__RCSID($NetBSD: floatunditf_ieee754.c,v 1.1 2014/01/30 15:06:18 joerg Exp $);
+
+#include math.h
+#include machine/ieee.h
+#include limits.h
+
+#ifdef __HAVE_LONG_DOUBLE
+
+long double __floatunditf(uint64_t x);
+
+/*
+ * Convert uint64_t to long double.
+ */
+long double
+__floatunditf(uint64_t x)
+{
+	int exponent, zeros;
+	union ieee_ext_u ux;
+
+	/* Use the easier conversion routine for uint32_t if possible. */
+	if (x = UINT32_MAX)
+		return (long double)(uint32_t)x;
+
+	zeros = __builtin_clzll(x);
+#ifdef LDBL_IMPLICIT_NBIT
+	exponent = 64 - zeros;
+	x = zeros + 1;
+#else
+	exponent = 63 - zeros;
+	x = zeros;
+#endif
+
+	ux.extu_exp = EXT_EXP_BIAS + exponent;
+	ux.extu_frach = (x  (64 - EXT_FRACHBITS));
+	x = EXT_FRACHBITS;
+#ifdef EXT_FRACHMBITS
+	ux.extu_frachm = (x  (64 - EXT_FRACHMBITS));
+	x = EXT_FRACHMBITS;
+#endif
+#ifdef EXT_FRACLMBITS
+	ux.extu_fraclm = (x  (64 - EXT_FRACLMBITS));
+	x = EXT_FRACLMBITS;
+#endif
+	ux.extu_fracl = (x  (64 - EXT_FRACLBITS));
+	ux.extu_sign = 0;
+
+	return ux.extu_ld;
+}
+#endif /* __HAVE_LONG_DOUBLE */



CVS commit: src/lib/libc/arch/mips

2014-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 15:05:49 UTC 2014

Modified Files:
src/lib/libc/arch/mips: Makefile.inc

Log Message:
Use fixunssfsi and fixunsdfsi from compiler-rt.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/arch/mips/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/lib/libc/arch/mips/Makefile.inc
diff -u src/lib/libc/arch/mips/Makefile.inc:1.12 src/lib/libc/arch/mips/Makefile.inc:1.13
--- src/lib/libc/arch/mips/Makefile.inc:1.12	Sat Jul  9 04:12:01 2011
+++ src/lib/libc/arch/mips/Makefile.inc	Thu Jan 30 15:05:49 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.12 2011/07/09 04:12:01 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.13 2014/01/30 15:05:49 joerg Exp $
 
 .include bsd.own.mk
 
@@ -11,7 +11,7 @@ CPPFLAGS.assym.h+=-D__LIBC12_SOURCE__
 .include softfloat/Makefile.inc
 CPPFLAGS+= -DSOFTFLOAT
 
-SRCS+=	fixunsgen_ieee754.c fixunssfsi_ieee754.c fixunsdfsi_ieee754.c
+SRCS+=	fixunsgen_ieee754.c
 SRCS+=	fixunsgen64_ieee754.c #fixunssfdi.c fixunsdfdi.c
 .if (${MACHINE_ARCH} == mips64eb || ${MACHINE_ARCH} == mips64el) \
  (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))



CVS commit: src/sys/arch

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 30 15:36:44 UTC 2014

Modified Files:
src/sys/arch/arm/conf: kern.ldscript.tail
src/sys/arch/cats/conf: kern.ldscript
src/sys/arch/epoc32/conf: ldscript.epoc32
src/sys/arch/evbarm/conf: ldscript.evbarm
src/sys/arch/netwinder/conf: kern.ldscript
src/sys/arch/shark/conf: kern.ldscript
src/sys/arch/zaurus/conf: ldscript.zaurus

Log Message:
Put EHABI exception tables at the end of text.
provide __exidx_start and __exidx_end symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/conf/kern.ldscript.tail
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/cats/conf/kern.ldscript
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/epoc32/conf/ldscript.epoc32
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/conf/ldscript.evbarm
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/netwinder/conf/kern.ldscript
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/shark/conf/kern.ldscript
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/zaurus/conf/ldscript.zaurus

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/arm/conf/kern.ldscript.tail
diff -u src/sys/arch/arm/conf/kern.ldscript.tail:1.3 src/sys/arch/arm/conf/kern.ldscript.tail:1.4
--- src/sys/arch/arm/conf/kern.ldscript.tail:1.3	Tue Dec 24 17:03:07 2013
+++ src/sys/arch/arm/conf/kern.ldscript.tail	Thu Jan 30 15:36:43 2014
@@ -1,6 +1,10 @@
-/*	$NetBSD: kern.ldscript.tail,v 1.3 2013/12/24 17:03:07 matt Exp $	*/
+/*	$NetBSD: kern.ldscript.tail,v 1.4 2014/01/30 15:36:43 matt Exp $	*/
 
   } =0
+  .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
+  PROVIDE (__exidx_start = .);
+  .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
+  PROVIDE (__exidx_end = .);
   PROVIDE (__etext = .);
   PROVIDE (_etext = .);
   PROVIDE (etext = .);

Index: src/sys/arch/cats/conf/kern.ldscript
diff -u src/sys/arch/cats/conf/kern.ldscript:1.1 src/sys/arch/cats/conf/kern.ldscript:1.2
--- src/sys/arch/cats/conf/kern.ldscript:1.1	Thu Nov 21 02:05:08 2002
+++ src/sys/arch/cats/conf/kern.ldscript	Thu Jan 30 15:36:43 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern.ldscript,v 1.1 2002/11/21 02:05:08 chris Exp $	*/
+/*	$NetBSD: kern.ldscript,v 1.2 2014/01/30 15:36:43 matt Exp $	*/
 
 OUTPUT_FORMAT(elf32-littlearm, elf32-bigarm,
 	  elf32-littlearm)
@@ -16,6 +16,10 @@ SECTIONS
 *(.glue_7t) *(.glue_7)
 *(.rodata) *(.rodata.*)
   } =0
+  .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
+  PROVIDE (__exidx_start = .);
+  .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
+  PROVIDE (__exidx_end = .);
   PROVIDE (__etext = .);
   PROVIDE (_etext = .);
   PROVIDE (etext = .);

Index: src/sys/arch/epoc32/conf/ldscript.epoc32
diff -u src/sys/arch/epoc32/conf/ldscript.epoc32:1.1 src/sys/arch/epoc32/conf/ldscript.epoc32:1.2
--- src/sys/arch/epoc32/conf/ldscript.epoc32:1.1	Sun Apr 28 12:11:25 2013
+++ src/sys/arch/epoc32/conf/ldscript.epoc32	Thu Jan 30 15:36:43 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ldscript.epoc32,v 1.1 2013/04/28 12:11:25 kiyohara Exp $	*/
+/*	$NetBSD: ldscript.epoc32,v 1.2 2014/01/30 15:36:43 matt Exp $	*/
 
 OUTPUT_ARCH(arm)
 ENTRY(KERNEL_BASE_phys)
@@ -23,6 +23,10 @@ SECTIONS
 *(.glue_7t) *(.glue_7)
 *(.rodata) *(.rodata.*)
   } =0
+  .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
+  PROVIDE (__exidx_start = .);
+  .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
+  PROVIDE (__exidx_end = .);
   PROVIDE (__etext = .);
   PROVIDE (_etext = .);
   PROVIDE (etext = .);

Index: src/sys/arch/evbarm/conf/ldscript.evbarm
diff -u src/sys/arch/evbarm/conf/ldscript.evbarm:1.7 src/sys/arch/evbarm/conf/ldscript.evbarm:1.8
--- src/sys/arch/evbarm/conf/ldscript.evbarm:1.7	Tue Dec 24 17:00:39 2013
+++ src/sys/arch/evbarm/conf/ldscript.evbarm	Thu Jan 30 15:36:44 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ldscript.evbarm,v 1.7 2013/12/24 17:00:39 matt Exp $	*/
+/*	$NetBSD: ldscript.evbarm,v 1.8 2014/01/30 15:36:44 matt Exp $	*/
 
 OUTPUT_ARCH(arm)
 ENTRY(KERNEL_BASE_phys)
@@ -23,6 +23,10 @@ SECTIONS
 *(.glue_7t) *(.glue_7)
 *(.rodata) *(.rodata.*)
   } =0
+  .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
+  PROVIDE (__exidx_start = .);
+  .ARM.exidx   : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
+  PROVIDE (__exidx_end = .);
   PROVIDE (__etext = .);
   PROVIDE (_etext = .);
   PROVIDE (etext = .);

Index: src/sys/arch/netwinder/conf/kern.ldscript
diff -u src/sys/arch/netwinder/conf/kern.ldscript:1.3 src/sys/arch/netwinder/conf/kern.ldscript:1.4
--- src/sys/arch/netwinder/conf/kern.ldscript:1.3	Wed Jun 11 21:49:40 2003
+++ src/sys/arch/netwinder/conf/kern.ldscript	Thu Jan 30 15:36:44 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern.ldscript,v 1.3 2003/06/11 21:49:40 uwe Exp $	*/
+/*	$NetBSD: kern.ldscript,v 1.4 2014/01/30 15:36:44 matt Exp $	*/
 
 OUTPUT_FORMAT(elf32-littlearm, elf32-bigarm,
 	  elf32-littlearm)
@@ -25,6 +25,10 @@ SECTIONS
 

CVS commit: [riastradh-drm2] src/sys

2014-01-30 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jan 30 16:49:33 UTC 2014

Modified Files:
src/sys/dev/wsfb [riastradh-drm2]: files.wsfb
src/sys/external/bsd/drm2/conf [riastradh-drm2]: files.drm2

Log Message:
Tweak genfb tweaks so they work.


To generate a diff of this commit:
cvs rdiff -u -r1.7.30.1 -r1.7.30.2 src/sys/dev/wsfb/files.wsfb
cvs rdiff -u -r1.1.2.6 -r1.1.2.7 src/sys/external/bsd/drm2/conf/files.drm2

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

Modified files:

Index: src/sys/dev/wsfb/files.wsfb
diff -u src/sys/dev/wsfb/files.wsfb:1.7.30.1 src/sys/dev/wsfb/files.wsfb:1.7.30.2
--- src/sys/dev/wsfb/files.wsfb:1.7.30.1	Wed Jan 29 19:47:38 2014
+++ src/sys/dev/wsfb/files.wsfb	Thu Jan 30 16:49:33 2014
@@ -1,4 +1,4 @@
-# $NetBSD: files.wsfb,v 1.7.30.1 2014/01/29 19:47:38 riastradh Exp $
+# $NetBSD: files.wsfb,v 1.7.30.2 2014/01/30 16:49:33 riastradh Exp $
 
 #
 # wsdisplay framebuffer drivers
@@ -9,7 +9,7 @@ defflag opt_wsfb.h WSFB_FAKE_VGA_FB	# al
 defflag opt_wsfb.h WSFB_ALLOW_OTHERS	# allow to mmap() foreign ranges
 
 # a generic framebuffer console
-define genfbbase: rasops1, rasops2, rasops8, rasops15, rasops16, rasops24, rasops32, vcons
-device genfb: genfbbase, wsemuldisplaydev, drm
-file	dev/wsfb/genfb.c	genfbbase	needs-flag
+define genfb: rasops1, rasops2, rasops8, rasops15, rasops16, rasops24, rasops32, vcons
+device genfb: genfb, wsemuldisplaydev, drm
+file	dev/wsfb/genfb.c	genfb	needs-flag
 defflag opt_genfb.h GENFB_DEBUG GENFB_SHADOWFB

Index: src/sys/external/bsd/drm2/conf/files.drm2
diff -u src/sys/external/bsd/drm2/conf/files.drm2:1.1.2.6 src/sys/external/bsd/drm2/conf/files.drm2:1.1.2.7
--- src/sys/external/bsd/drm2/conf/files.drm2:1.1.2.6	Wed Jan 29 19:47:38 2014
+++ src/sys/external/bsd/drm2/conf/files.drm2	Thu Jan 30 16:49:33 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: files.drm2,v 1.1.2.6 2014/01/29 19:47:38 riastradh Exp $
+#	$NetBSD: files.drm2,v 1.1.2.7 2014/01/30 16:49:33 riastradh Exp $
 
 define	drmkmsbus	{ }
 
@@ -69,7 +69,7 @@ file	external/bsd/drm2/drm/drm_gem_vm.c	
 file	external/bsd/drm2/drm/drm_module.c		drmkms
 file	external/bsd/drm2/drm/drm_sysfs.c		drmkms
 
-device	i915drmkms: drmkms, drmkmsbus, genfbbase, wsemuldisplaydev
+device	i915drmkms: drmkms, drmkmsbus, genfb, wsemuldisplaydev
 attach	i915drmkms at pci
 
 makeoptions	i915drmkms	CPPFLAGS+=-I$S/external/bsd/drm2/dist/drm/i915



CVS commit: [riastradh-drm2] src/sys/dev/wscons

2014-01-30 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jan 30 17:18:51 UTC 2014

Modified Files:
src/sys/dev/wscons [riastradh-drm2]: wsdisplay_vcons.c

Log Message:
Make wsdisplay_vcons likelier to be modularizable too.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.28.4.1 src/sys/dev/wscons/wsdisplay_vcons.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/dev/wscons/wsdisplay_vcons.c
diff -u src/sys/dev/wscons/wsdisplay_vcons.c:1.28 src/sys/dev/wscons/wsdisplay_vcons.c:1.28.4.1
--- src/sys/dev/wscons/wsdisplay_vcons.c:1.28	Tue May 28 11:04:04 2013
+++ src/sys/dev/wscons/wsdisplay_vcons.c	Thu Jan 30 17:18:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: wsdisplay_vcons.c,v 1.28 2013/05/28 11:04:04 macallan Exp $ */
+/*	$NetBSD: wsdisplay_vcons.c,v 1.28.4.1 2014/01/30 17:18:51 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: wsdisplay_vcons.c,v 1.28 2013/05/28 11:04:04 macallan Exp $);
+__KERNEL_RCSID(0, $NetBSD: wsdisplay_vcons.c,v 1.28.4.1 2014/01/30 17:18:51 riastradh Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -51,9 +51,11 @@ __KERNEL_RCSID(0, $NetBSD: wsdisplay_vc
 
 #include dev/wscons/wsdisplay_vconsvar.h
 
+#ifdef _KERNEL_OPT
 #include opt_wsemul.h
 #include opt_wsdisplay_compat.h
 #include opt_vcons.h
+#endif
 
 static void vcons_dummy_init_screen(void *, struct vcons_screen *, int, 
 	long *);



CVS commit: [riastradh-drm2] src/sys/arch/amd64/conf

2014-01-30 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jan 30 17:18:15 UTC 2014

Modified Files:
src/sys/arch/amd64/conf [riastradh-drm2]: NO_DRM
Added Files:
src/sys/arch/amd64/conf [riastradh-drm2]: DRMKMS

Log Message:
Redo amd64/NO_DRM config and add amd64/DRMKMS.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.1 src/sys/arch/amd64/conf/DRMKMS
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/amd64/conf/NO_DRM

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/amd64/conf/NO_DRM
diff -u src/sys/arch/amd64/conf/NO_DRM:1.1.2.2 src/sys/arch/amd64/conf/NO_DRM:1.1.2.3
--- src/sys/arch/amd64/conf/NO_DRM:1.1.2.2	Wed Jan 29 19:46:51 2014
+++ src/sys/arch/amd64/conf/NO_DRM	Thu Jan 30 17:18:15 2014
@@ -1,1275 +1,11 @@
-# $NetBSD: NO_DRM,v 1.1.2.2 2014/01/29 19:46:51 riastradh Exp $
-#
-# GENERIC machine description file
-#
-# This machine description file is used to generate the default NetBSD
-# kernel.  The generic kernel does not include all options, subsystems
-# and device drivers, but should be useful for most applications.
-#
-# The machine description file can be customised for your specific
-# machine to reduce the kernel size and improve its performance.
-#
-# For further information on compiling NetBSD kernels, see the config(8)
-# man page.
-#
-# For further information on hardware support for this architecture, see
-# the intro(4) man page.  For further information about kernel options
-# for this architecture, see the options(4) man page.  For an explanation
-# of each device driver in this file see the section 4 man page for the
-# device.
+include arch/amd64/conf/GENERIC
 
-include	arch/amd64/conf/std.amd64
-
-options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
-
-#ident 		GENERIC-$Revision: 1.1.2.2 $
-
-maxusers	64		# estimated number of users
-
-# delay between rebooting ... message and hardware reset, in milliseconds
-#options 	CPURESET_DELAY=2000
-
-# This option allows you to force a serial console at the specified
-# I/O address.   see console(4) for details.
-#options 	CONSDEVNAME=\com\,CONADDR=0x2f8,CONSPEED=57600
-#	you don't want the option below ON iff you are using the
-#	serial console option of the new boot strap code.
-#options 	CONS_OVERRIDE	# Always use above! independent of boot info
-
-# The following options override the memory sizes passed in from the boot
-# block.  Use them *only* if the boot block is unable to determine the correct
-# values.  Note that the BIOS may *correctly* report less than 640k of base
-# memory if the extended BIOS data area is located at the top of base memory
-# (as is the case on most recent systems).
-#options 	REALBASEMEM=639		# size of base memory (in KB)
-#options 	REALEXTMEM=15360	# size of extended memory (in KB)
-
-# The following options limit the overall size of physical memory
-# and/or the maximum address used by the system.
-# Contrary to REALBASEMEM and REALEXTMEM, they still use the BIOS memory map
-# and can deal with holes in the memory layout.
-#options 	PHYSMEM_MAX_SIZE=64	# max size of physical memory (in MB)
-#options 	PHYSMEM_MAX_ADDR=2048	# don't use memory above this (in MB)
-
-# Standard system options
-
-options 	INSECURE	# disable kernel security levels - X needs this
-
-options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
-options 	NTP		# NTP phase/frequency locked loop
-
-options 	KTRACE		# system call tracing via ktrace(1)
-
-options		CPU_UCODE	# cpu ucode loading support
-
-# Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
-options 	SYSVMSG		# System V-like message queues
-options 	SYSVSEM		# System V-like semaphores
-options 	SYSVSHM		# System V-like memory sharing
-
-options 	MODULAR		# new style module(7) framework
-options 	USERCONF	# userconf(4) support
-#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
-options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
-
-# CPU features
-acpicpu*	at cpu?		# ACPI CPU (including frequency scaling)
-coretemp*	at cpu?		# Intel on-die thermal sensor
-est0		at cpu0		# Intel Enhanced SpeedStep (non-ACPI)
-#odcm0		at cpu0		# On-demand clock modulation
-powernow0	at cpu0		# AMD PowerNow! and Cool'n'Quiet (non-ACPI)
-vmt0		at cpu0		# VMware Tools
-
-# Alternate buffer queue strategies for better responsiveness under high
-# disk I/O load.
-#options 	BUFQ_READPRIO
-options 	BUFQ_PRIOCSCAN
-
-# Diagnostic/debugging support options
-options 	DIAGNOSTIC	# expensive kernel consistency checks
-# XXX to be commented out on release branch
-#options 	DEBUG		# expensive debugging checks/support
-#options 	LOCKDEBUG	# expensive locking checks/support
-#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
-
-#
-# Because gcc omits the frame pointer for any -O level, the line below
-# is needed to make backtraces in DDB work.
-#
-makeoptions	COPTS=-O2 -fno-omit-frame-pointer

CVS commit: src/lib/libc/softfloat

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 30 19:06:54 UTC 2014

Added Files:
src/lib/libc/softfloat: unordtf2.c

Log Message:
unord for float128 long double


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libc/softfloat/unordtf2.c

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

Added files:

Index: src/lib/libc/softfloat/unordtf2.c
diff -u /dev/null src/lib/libc/softfloat/unordtf2.c:1.1
--- /dev/null	Thu Jan 30 19:06:54 2014
+++ src/lib/libc/softfloat/unordtf2.c	Thu Jan 30 19:06:54 2014
@@ -0,0 +1,28 @@
+/* $NetBSD: unordtf2.c,v 1.1 2014/01/30 19:06:54 matt Exp $ */
+
+/*
+ * Written by Richard Earnshaw, 2003.  This file is in the Public Domain.
+ */
+
+#include softfloat-for-gcc.h
+#include milieu.h
+#include softfloat.h
+
+#include sys/cdefs.h
+#if defined(LIBC_SCCS)  !defined(lint)
+__RCSID($NetBSD: unordtf2.c,v 1.1 2014/01/30 19:06:54 matt Exp $);
+#endif /* LIBC_SCCS and not lint */
+
+flag __unordtf2(float128, float128);
+
+flag
+__unordtf2(float128 a, float128 b)
+{
+	/*
+	 * The comparison is unordered if either input is a NaN.
+	 * Test for this by comparing each operand with itself.
+	 * We must perform both comparisons to correctly check for
+	 * signalling NaNs.
+	 */
+	return 1 ^ (float128_eq(a, a)  float128_eq(b, b));
+}



CVS commit: src/lib/libc/softfloat

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 30 19:11:54 UTC 2014

Modified Files:
src/lib/libc/softfloat: Makefile.inc

Log Message:
Add unordtf2.c


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/softfloat/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/lib/libc/softfloat/Makefile.inc
diff -u src/lib/libc/softfloat/Makefile.inc:1.16 src/lib/libc/softfloat/Makefile.inc:1.17
--- src/lib/libc/softfloat/Makefile.inc:1.16	Thu Dec 19 22:20:01 2013
+++ src/lib/libc/softfloat/Makefile.inc	Thu Jan 30 19:11:54 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.16 2013/12/19 22:20:01 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.17 2014/01/30 19:11:54 matt Exp $
 
 SOFTFLOAT_BITS?=64
 .PATH:		${ARCHDIR}/softfloat \
@@ -23,7 +23,8 @@ SRCS.softfloat+=__aeabi_dcmpun.c __aeabi
 SRCS.softfloat+=eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \
 		eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \
 		eqtf2.c netf2.c gttf2.c getf2.c lttf2.c letf2.c negtf2.c \
-		nexf2.c gtxf2.c gexf2.c negxf2.c unordsf2.c unorddf2.c
+		nexf2.c gtxf2.c gexf2.c negxf2.c \
+		unordsf2.c unorddf2.c unordtf2.c
 .endif
 
 SRCS+=		${SRCS.softfloat}



CVS commit: src/lib/libc/softfloat

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 30 19:11:41 UTC 2014

Modified Files:
src/lib/libc/softfloat: unordtf2.c

Log Message:
Make confiditon on FLOAT128


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/softfloat/unordtf2.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/softfloat/unordtf2.c
diff -u src/lib/libc/softfloat/unordtf2.c:1.1 src/lib/libc/softfloat/unordtf2.c:1.2
--- src/lib/libc/softfloat/unordtf2.c:1.1	Thu Jan 30 19:06:54 2014
+++ src/lib/libc/softfloat/unordtf2.c	Thu Jan 30 19:11:41 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: unordtf2.c,v 1.1 2014/01/30 19:06:54 matt Exp $ */
+/* $NetBSD: unordtf2.c,v 1.2 2014/01/30 19:11:41 matt Exp $ */
 
 /*
  * Written by Richard Earnshaw, 2003.  This file is in the Public Domain.
@@ -10,9 +10,11 @@
 
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: unordtf2.c,v 1.1 2014/01/30 19:06:54 matt Exp $);
+__RCSID($NetBSD: unordtf2.c,v 1.2 2014/01/30 19:11:41 matt Exp $);
 #endif /* LIBC_SCCS and not lint */
 
+#ifdef FLOAT128
+
 flag __unordtf2(float128, float128);
 
 flag
@@ -26,3 +28,5 @@ __unordtf2(float128 a, float128 b)
 	 */
 	return 1 ^ (float128_eq(a, a)  float128_eq(b, b));
 }
+
+#endif /* FLOAT128 */



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

2014-01-30 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Thu Jan 30 19:24:06 UTC 2014

Modified Files:
src/external/mit/xorg/lib/pixman: Makefile

Log Message:
Turn off attribute warning errors for clang in
pixman-mmx.c (__artificial__).


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/external/mit/xorg/lib/pixman/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/mit/xorg/lib/pixman/Makefile
diff -u src/external/mit/xorg/lib/pixman/Makefile:1.26 src/external/mit/xorg/lib/pixman/Makefile:1.27
--- src/external/mit/xorg/lib/pixman/Makefile:1.26	Sat Dec 21 08:58:07 2013
+++ src/external/mit/xorg/lib/pixman/Makefile	Thu Jan 30 19:24:06 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.26 2013/12/21 08:58:07 skrll Exp $
+#	$NetBSD: Makefile,v 1.27 2014/01/30 19:24:06 riz Exp $
 
 NOLINT=	1	# defined
 
@@ -48,6 +48,9 @@ SRCS+=	\
 .if ${MACHINE_ARCH} == i386
 SRCS+= pixman-mmx.c
 COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
+. if defined(HAVE_LLVM)
+COPTS.pixman-mmx.c+=	-Wno-error=attributes
+. endif
 MKDEPFLAGS+=		-mmmx -msse2 -fvisibility=hidden
 SRCS+=	pixman-sse2.c
 COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden



CVS commit: src/tests/lib/libc/gen

2014-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 22:15:55 UTC 2014

Modified Files:
src/tests/lib/libc/gen: t_floatunditf.c

Log Message:
No unused functions if there is no long double support.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/gen/t_floatunditf.c

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

Modified files:

Index: src/tests/lib/libc/gen/t_floatunditf.c
diff -u src/tests/lib/libc/gen/t_floatunditf.c:1.1 src/tests/lib/libc/gen/t_floatunditf.c:1.2
--- src/tests/lib/libc/gen/t_floatunditf.c:1.1	Thu Jan 30 15:04:04 2014
+++ src/tests/lib/libc/gen/t_floatunditf.c	Thu Jan 30 22:15:55 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: t_floatunditf.c,v 1.1 2014/01/30 15:04:04 joerg Exp $ */
+/* $NetBSD: t_floatunditf.c,v 1.2 2014/01/30 22:15:55 joerg Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,6 +31,7 @@
 #include inttypes.h
 #include math.h
 
+#ifdef __HAVE_LONG_DOUBLE
 static const struct {
 	uint64_t u64;
 	long double ld;
@@ -101,8 +102,6 @@ static const struct {
 	{ 0x1ULL, 0x8p-3L },
 };
 
-long double floatunditf(uint64_t);
-
 ATF_TC(floatunditf);
 ATF_TC_HEAD(floatunditf, tc)
 {
@@ -117,6 +116,7 @@ ATF_TC_BODY(floatunditf, tc)
 	for (i = 0; i  __arraycount(testcases); ++i)
 		ATF_CHECK(testcases[i].ld == (long double)testcases[i].u64);
 }
+#endif
 
 ATF_TP_ADD_TCS(tp)
 {



CVS commit: src/rescue

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 30 22:19:00 UTC 2014

Modified Files:
src/rescue: Makefile

Log Message:
Append -Os to DBG, not overwrite in case DBG has more than just -Ox from
sys.mk


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

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

Modified files:

Index: src/rescue/Makefile
diff -u src/rescue/Makefile:1.30 src/rescue/Makefile:1.31
--- src/rescue/Makefile:1.30	Thu Dec 26 02:25:57 2013
+++ src/rescue/Makefile	Thu Jan 30 22:19:00 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2013/12/26 02:25:57 christos Exp $
+#	$NetBSD: Makefile,v 1.31 2014/01/30 22:19:00 matt Exp $
 
 .include bsd.own.mk
 .include ${NETBSDSRCDIR}/distrib/common/Makefile.distrib
@@ -6,7 +6,7 @@
 WARNS=		1
 # XXX
 .if ${MACHINE_ARCH} != m68000
-DBG=		-Os
+DBG+=		-Os
 .endif
 
 CRUNCHGEN_FLAGS=-d ${DBG}



CVS commit: src/external/gpl3/binutils/dist/ld/emulparams

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 31 03:26:50 UTC 2014

Added Files:
src/external/gpl3/binutils/dist/ld/emulparams: armelf_nbsd_eabihf.sh
armelfb_nbsd_eabihf.sh

Log Message:
Add armelf{,b}_nbsd_eabihf emulations for MKCOMPAT to use.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabihf.sh \
src/external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabihf.sh

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/binutils/dist/ld/emulparams/armelf_nbsd_eabihf.sh
diff -u /dev/null src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabihf.sh:1.1
--- /dev/null	Fri Jan 31 03:26:50 2014
+++ src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabihf.sh	Fri Jan 31 03:26:50 2014
@@ -0,0 +1,18 @@
+. ${srcdir}/emulparams/armelf_nbsd.sh
+
+# Use the ARM ABI-compliant exception-handling sections.
+OTHER_READONLY_SECTIONS=
+  .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
+  ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
+  .ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
+  ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }
+
+unset LIB_PATH
+
+case $target in
+  arm*-*-netbsdelf*-*eabihf*)
+;;
+  arm*-*-netbsdelf*)
+LIB_PATH='=/usr/lib/eabihf'
+;;
+esac
Index: src/external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabihf.sh
diff -u /dev/null src/external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabihf.sh:1.1
--- /dev/null	Fri Jan 31 03:26:50 2014
+++ src/external/gpl3/binutils/dist/ld/emulparams/armelfb_nbsd_eabihf.sh	Fri Jan 31 03:26:50 2014
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/armelf_nbsd_eabihf.sh
+OUTPUT_FORMAT=elf32-bigarm



CVS commit: src/external/gpl3/binutils/dist/ld

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 31 07:32:54 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in
configure.tgt
src/external/gpl3/binutils/dist/ld/emulparams: armelf_nbsd_eabi.sh

Log Message:
Use separate emulations for EABI hardfloat / softfloat.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/binutils/dist/ld/Makefile.am \
src/external/gpl3/binutils/dist/ld/Makefile.in
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/ld/configure.tgt
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd_eabi.sh

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/binutils/dist/ld/Makefile.am
diff -u src/external/gpl3/binutils/dist/ld/Makefile.am:1.6 src/external/gpl3/binutils/dist/ld/Makefile.am:1.7
--- src/external/gpl3/binutils/dist/ld/Makefile.am:1.6	Wed Jan 29 05:27:35 2014
+++ src/external/gpl3/binutils/dist/ld/Makefile.am	Fri Jan 31 07:32:53 2014
@@ -146,6 +146,7 @@ ALL_EMULATION_SOURCES = \
 	earmelf_nacl.c \
 	earmelf_nbsd.c \
 	earmelf_nbsd_eabi.c \
+	earmelf_nbsd_eabihf.c \
 	earmelf_vxworks.c \
 	earmelfb.c \
 	earmelfb_linux.c \
@@ -153,6 +154,7 @@ ALL_EMULATION_SOURCES = \
 	earmelfb_nacl.c \
 	earmelfb_nbsd.c \
 	earmelfb_nbsd_eabi.c \
+	earmelfb_nbsd_eabihf.c \
 	earmnbsd.c \
 	earmnto.c \
 	earmpe.c \
@@ -734,10 +736,17 @@ earmelf_nbsd.c: $(srcdir)/emulparams/arm
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
 	${GENSCRIPTS} armelf_nbsd $(tdir_armelf_nbsd)
 earmelf_nbsd_eabi.c: $(srcdir)/emulparams/armelf_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf_nbsd.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+	${GENSCRIPTS} armelf_nbsd_eabi $(tdir_armelf_nbsd_eabi)
+earmelf_nbsd_eabihf.c: $(srcdir)/emulparams/armelf_nbsd_eabihf.sh \
+  $(srcdir)/emulparams/armelf_nbsd.sh \
   $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
-	${GENSCRIPTS} armelf_nbsd_abi $(tdir_armelf_nbsd_eabi)
+	${GENSCRIPTS} armelf_nbsd_eabihf $(tdir_armelf_nbsd_eabihf)
 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
@@ -773,12 +782,19 @@ earmelfb_nbsd.c: $(srcdir)/emulparams/ar
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
 	${GENSCRIPTS} armelfb_nbsd $(tdir_armelfb_nbsd)
-earmelfb_nbsd_abi.c: $(srcdir)/emulparams/armelfb_nbsd_abi.sh \
-  $(srcdir)/emulparams/armelf_nbsd_abi.sh \
+earmelfb_nbsd_eabi.c: $(srcdir)/emulparams/armelfb_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf_nbsd.sh \
+  $(srcdir)/emulparams/armelf.sh \
+  $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+	${GENSCRIPTS} armelfb_nbsd_eabi $(tdir_armelfb_nbsd_eabi)
+earmelfb_nbsd_eabihf.c: $(srcdir)/emulparams/armelfb_nbsd_eabihf.sh \
+  $(srcdir)/emulparams/armelf_nbsd_eabi.sh \
+  $(srcdir)/emulparams/armelf_nbsd.sh \
   $(srcdir)/emulparams/armelf.sh \
   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
-	${GENSCRIPTS} armelfb_nbsd_abi $(tdir_armelfb_nbsd_abi)
+	${GENSCRIPTS} armelfb_nbsd_eabihf $(tdir_armelfb_nbsd_eabihf)
 earmnbsd.c:	$(srcdir)/emulparams/armnbsd.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
 	${GENSCRIPTS} armnbsd $(tdir_armnbsd)
Index: src/external/gpl3/binutils/dist/ld/Makefile.in
diff -u src/external/gpl3/binutils/dist/ld/Makefile.in:1.6 src/external/gpl3/binutils/dist/ld/Makefile.in:1.7
--- src/external/gpl3/binutils/dist/ld/Makefile.in:1.6	Sun Sep 29 14:03:31 2013
+++ src/external/gpl3/binutils/dist/ld/Makefile.in	Fri Jan 31 07:32:53 2014
@@ -453,6 +453,7 @@ ALL_EMULATION_SOURCES = \
 	earmelf_nacl.c \
 	earmelf_nbsd.c \
 	earmelf_nbsd_eabi.c \
+	earmelf_nbsd_eabihf.c \
 	earmelf_vxworks.c \
 	earmelfb.c \
 	earmelfb_linux.c \
@@ -460,6 +461,7 @@ ALL_EMULATION_SOURCES = \
 	earmelfb_nacl.c \
 	earmelfb_nbsd.c \
 	earmelfb_nbsd_eabi.c \
+	earmelfb_nbsd_eabihf.c \
 	earmnbsd.c \
 	earmnto.c \
 	earmpe.c \
@@ -1080,7 +1082,8 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux_eabi.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nacl.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd_abi.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd_eabi.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd_eabihf.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_vxworks.Po@am__quote@
 

CVS commit: src/external/gpl3/binutils/usr.bin/ld/arch

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 31 07:56:19 UTC 2014

Modified Files:
src/external/gpl3/binutils/usr.bin/ld/arch/earm: defs.mk ldemul-list.h
src/external/gpl3/binutils/usr.bin/ld/arch/earmeb: defs.mk
ldemul-list.h
src/external/gpl3/binutils/usr.bin/ld/arch/earmhf: defs.mk
ldemul-list.h
src/external/gpl3/binutils/usr.bin/ld/arch/earmhfeb: defs.mk
ldemul-list.h

Log Message:
Regen for missing emulations.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/ldemul-list.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmhf/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmhf/ldemul-list.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmhfeb/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/earmhfeb/ldemul-list.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/binutils/usr.bin/ld/arch/earm/defs.mk
diff -u src/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk:1.2 src/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk:1.3
--- src/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk:1.2	Fri Oct  4 03:38:32 2013
+++ src/external/gpl3/binutils/usr.bin/ld/arch/earm/defs.mk	Fri Jan 31 07:56:18 2014
@@ -1,12 +1,12 @@
 # This file is automatically generated.  DO NOT EDIT!
 # Generated from: 	NetBSD: mknative-binutils,v 1.9 2013/10/01 15:41:17 skrll Exp 
-# Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
+# Generated from: NetBSD: mknative.common,v 1.10 2013/10/20 16:00:20 skrll Exp 
 #
 G_DEFS=-DHAVE_CONFIG_H
 G_EMUL=armelf_nbsd_eabi
-G_EMULATION_OFILES=earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o
+G_EMULATION_OFILES=earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf_nbsd_eabihf.o earmelfb_nbsd_eabihf.o earmelf_nbsd.o earmelfb_nbsd.o earmelf.o earmnbsd.o
 G_INCLUDES=
-G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o  mri.o ldctor.o ldmain.o plugin.o  ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o  ldfile.o ldcref.o earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf.o earmnbsd.o 
+G_OFILES=ldgram.o ldlex-wrapper.o lexsup.o ldlang.o  mri.o ldctor.o ldmain.o plugin.o  ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o  ldfile.o ldcref.o earmelf_nbsd_eabi.o earmelfb_nbsd_eabi.o earmelf_nbsd_eabihf.o earmelfb_nbsd_eabihf.o earmelf_nbsd.o earmelfb_nbsd.o earmelf.o earmnbsd.o 
 G_STRINGIFY=astring.sed
 G_TEXINFOS=ld.texinfo
 G_target_alias=arm--netbsdelf-eabi

Index: src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h
diff -u src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h:1.1 src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h:1.2
--- src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h:1.1	Sun Aug  5 16:34:06 2012
+++ src/external/gpl3/binutils/usr.bin/ld/arch/earm/ldemul-list.h	Fri Jan 31 07:56:18 2014
@@ -1,16 +1,24 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: 	NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
+/* Generated from: 	NetBSD: mknative-binutils,v 1.9 2013/10/01 15:41:17 skrll Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.10 2013/10/20 16:00:20 skrll Exp  */
 
 /* This file is automatically generated.  DO NOT EDIT! */
 extern ld_emulation_xfer_type ld_armelf_nbsd_eabi_emulation;
 extern ld_emulation_xfer_type ld_armelfb_nbsd_eabi_emulation;
+extern ld_emulation_xfer_type ld_armelf_nbsd_eabihf_emulation;
+extern ld_emulation_xfer_type ld_armelfb_nbsd_eabihf_emulation;
+extern ld_emulation_xfer_type ld_armelf_nbsd_emulation;
+extern ld_emulation_xfer_type ld_armelfb_nbsd_emulation;
 extern ld_emulation_xfer_type ld_armelf_emulation;
 extern ld_emulation_xfer_type ld_armnbsd_emulation;
 
 #define EMULATION_LIST \
   ld_armelf_nbsd_eabi_emulation, \
   ld_armelfb_nbsd_eabi_emulation, \
+  ld_armelf_nbsd_eabihf_emulation, \
+  ld_armelfb_nbsd_eabihf_emulation, \
+  ld_armelf_nbsd_emulation, \
+  ld_armelfb_nbsd_emulation, \
   ld_armelf_emulation, \
   ld_armnbsd_emulation, \
   0

Index: src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk
diff -u src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk:1.2 src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk:1.3
--- src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk:1.2	Fri Oct  4 03:38:32 2013
+++ src/external/gpl3/binutils/usr.bin/ld/arch/earmeb/defs.mk	Fri Jan 31 

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

2014-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 31 07:58:39 UTC 2014

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

Log Message:
Fix TARGET_LINKER_EABI_SUFFIX to actually use the right suffix.  Since this
now depends on the default float-abi, pick from two strings to select the
right suffix.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.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/arm/netbsd-eabi.h
diff -u src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h:1.10 src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h:1.11
--- src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h:1.10	Fri Aug 23 00:22:16 2013
+++ src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h	Fri Jan 31 07:58:39 2014
@@ -32,9 +32,12 @@
 #define ARM_EABI_UNWIND_TABLES \
   ((!USING_SJLJ_EXCEPTIONS  flag_exceptions) || flag_unwind_tables)
 
-#define TARGET_LINKER_EABI_SUFFIX %{!mabi=apcs-gnu:%{!mabi=atpcs:_nbsd_eabi}}
-#define TARGET_LINKER_BIG_EMULATION armelfb%(linker_eabi_suffix)
-#define TARGET_LINKER_LITTLE_EMULATION armelf%(linker_eabi_suffix)
+#define TARGET_LINKER_EABI_SUFFIX \
+(TARGET_DEFAULT_FLOAT_ABI == ARM_FLOAT_ABI_SOFT \
+ ? %{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=hard:_eabihf;:_eabi}}} \
+ : %{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=soft:_eabi;:_eabihf}}})
+#define TARGET_LINKER_BIG_EMULATION armelfb_nbsd%(linker_eabi_suffix)
+#define TARGET_LINKER_LITTLE_EMULATION armelf_nbsd%(linker_eabi_suffix)
 
 /* TARGET_BIG_ENDIAN_DEFAULT is set in
config.gcc for big endian configurations.  */