NetBSD re-synchronization of the source tree

This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
This commit is contained in:
2015-10-15 17:01:16 +02:00
parent 8933525b85
commit 0a6a1f1d05
32425 changed files with 2998623 additions and 1342348 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.15 2013/04/30 01:42:04 matt Exp $
# $NetBSD: Makefile.inc,v 1.20 2015/04/08 13:16:37 martin Exp $
SOFTFLOAT_BITS?=64
.if defined(__MINIX)
@@ -7,13 +7,13 @@ SOFTFLOAT_BITS?=64
.else
.PATH: ${ARCHDIR}/softfloat \
${.CURDIR}/softfloat/bits${SOFTFLOAT_BITS} ${.CURDIR}/softfloat
.endif
.endif # defined(__MINIX)
.if defined(__MINIX)
CPPFLAGS+= -I${ARCHDIR}/softfloat -I${LIBCDIR}/softfloat
.else
CPPFLAGS+= -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
.endif
.endif # defined(__MINIX)
CPPFLAGS+= -DSOFTFLOAT_FOR_GCC
SRCS.softfloat= softfloat.c
@@ -32,18 +32,20 @@ SRCS.softfloat+=__aeabi_dcmpun.c __aeabi_fcmpun.c
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}
# XXX
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
.if (${MACHINE_CPU} == "arm")
.if defined(HAVE_GCC)
. if (${LIBC_MACHINE_CPU} == "arm") && (${HAVE_GCC} == "45")
# See doc/HACKS for more information.
COPTS.softfloat.c+= -Wno-enum-compare -fno-tree-vrp
.elif (${MACHINE_CPU} == "mips" || \
${MACHINE_CPU} == "sh3")
COPTS.softfloat.c+= -Wno-enum-compare
.endif
COPTS.softfloat.c+= ${${ACTIVE_CXX} == "gcc":? -fno-tree-vrp :}
.elif (${LIBC_MACHINE_CPU} == "mips" || \
${LIBC_MACHINE_CPU} == "sh3")
COPTS.softfloat.c+= -Wno-enum-compare
. endif
.endif

View File

@@ -1,4 +1,4 @@
/* $NetBSD: softfloat-specialize,v 1.8 2013/01/10 08:16:10 matt Exp $ */
/* $NetBSD: softfloat-specialize,v 1.9 2014/08/10 05:57:31 matt Exp $ */
/* This is a derivative work. */
@@ -140,8 +140,10 @@ Returns 1 if the single-precision floating-point value `a' is a signaling
NaN; otherwise returns 0.
-------------------------------------------------------------------------------
*/
#if defined(SOFTFLOAT_FOR_GCC) && !defined(SOFTFLOATSPARC64_FOR_GCC) && \
!defined(SOFTFLOAT_M68K_FOR_GCC)
#if defined(SOFTFLOAT_FOR_GCC) \
&& !defined(SOFTFLOATAARCH64_FOR_GCC) \
&& !defined(SOFTFLOATSPARC64_FOR_GCC) \
&& !defined(SOFTFLOATM68K_FOR_GCC)
static
#endif
flag float32_is_signaling_nan( float32 a )
@@ -240,8 +242,10 @@ Returns 1 if the double-precision floating-point value `a' is a signaling
NaN; otherwise returns 0.
-------------------------------------------------------------------------------
*/
#if defined(SOFTFLOAT_FOR_GCC) && !defined(SOFTFLOATSPARC64_FOR_GCC) && \
!defined(SOFTFLOATM68K_FOR_GCC)
#if defined(SOFTFLOAT_FOR_GCC) \
&& !defined(SOFTFLOATAARCH64_FOR_GCC) \
&& !defined(SOFTFLOATSPARC64_FOR_GCC) \
&& !defined(SOFTFLOATM68K_FOR_GCC)
static
#endif
flag float64_is_signaling_nan( float64 a )

View File

@@ -0,0 +1,32 @@
/* $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.
*/
#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.2 2014/01/30 19:11:41 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef FLOAT128
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));
}
#endif /* FLOAT128 */