Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc If compiling for SOFTFLOAT, include "softfloat/soft...
details: https://anonhg.NetBSD.org/src/rev/fc2f793b9ac5
branches: trunk
changeset: 780748:fc2f793b9ac5
user: matt <matt%NetBSD.org@localhost>
date: Sun Aug 05 04:28:58 2012 +0000
description:
If compiling for SOFTFLOAT, include "softfloat/softfloat-for-gcc.h" so we
can pick any redefinitions of the function (for ARM EABI).
diffstat:
lib/libc/gen/fixunsdfsi_ieee754.c | 8 ++++++--
lib/libc/gen/fixunssfsi_ieee754.c | 8 ++++++--
lib/libc/gen/fixunstfsi_ieee754.c | 8 ++++++--
lib/libc/quad/fixdfdi.c | 8 ++++++--
lib/libc/quad/fixsfdi.c | 8 ++++++--
lib/libc/quad/fixunsdfdi.c | 8 ++++++--
lib/libc/quad/fixunssfdi.c | 8 ++++++--
lib/libc/quad/floatdidf.c | 8 ++++++--
lib/libc/quad/floatdisf.c | 8 ++++++--
lib/libc/quad/floatundidf.c | 8 ++++++--
lib/libc/quad/floatundisf.c | 8 ++++++--
lib/libc/quad/floatunditf_ieee754.c | 8 ++++++--
12 files changed, 72 insertions(+), 24 deletions(-)
diffs (truncated from 312 to 300 lines):
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/gen/fixunsdfsi_ieee754.c
--- a/lib/libc/gen/fixunsdfsi_ieee754.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/gen/fixunsdfsi_ieee754.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunsdfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $ */
+/* $NetBSD: fixunsdfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fixunsdfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $");
+__RCSID("$NetBSD: fixunsdfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <stdbool.h>
@@ -39,6 +39,10 @@
#include <float.h>
#include <machine/ieee.h>
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
uint32_t __fixunsgen32(int, bool, size_t, size_t, const uint32_t *);
uint32_t __fixunsdfsi(double);
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/gen/fixunssfsi_ieee754.c
--- a/lib/libc/gen/fixunssfsi_ieee754.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/gen/fixunssfsi_ieee754.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunssfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $ */
+/* $NetBSD: fixunssfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fixunssfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $");
+__RCSID("$NetBSD: fixunssfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <stdbool.h>
@@ -39,6 +39,10 @@
#include <float.h>
#include <machine/ieee.h>
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
uint32_t __fixunsgen32(int, bool, size_t, size_t, const uint32_t *);
uint32_t __fixunssfsi(float);
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/gen/fixunstfsi_ieee754.c
--- a/lib/libc/gen/fixunstfsi_ieee754.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/gen/fixunstfsi_ieee754.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunstfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $ */
+/* $NetBSD: fixunstfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fixunstfsi_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $");
+__RCSID("$NetBSD: fixunstfsi_ieee754.c,v 1.2 2012/08/05 04:28:58 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <stdbool.h>
@@ -39,6 +39,10 @@
#include <float.h>
#include <machine/ieee.h>
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#if defined(__x86_64__) || defined(__i486__)
#define FIXUNS __fixunsxfsi
#else
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/fixdfdi.c
--- a/lib/libc/quad/fixdfdi.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/fixdfdi.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixdfdi.c,v 1.5 2011/07/04 06:23:50 matt Exp $ */
+/* $NetBSD: fixdfdi.c,v 1.6 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)fixdfdi.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: fixdfdi.c,v 1.5 2011/07/04 06:23:50 matt Exp $");
+__RCSID("$NetBSD: fixdfdi.c,v 1.6 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/fixsfdi.c
--- a/lib/libc/quad/fixsfdi.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/fixsfdi.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixsfdi.c,v 1.4 2003/08/07 16:43:16 agc Exp $ */
+/* $NetBSD: fixsfdi.c,v 1.5 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992 The Regents of the University of California.
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)fixsfdi.c 5.1 (Berkeley) 7/7/92";
#else
-__RCSID("$NetBSD: fixsfdi.c,v 1.4 2003/08/07 16:43:16 agc Exp $");
+__RCSID("$NetBSD: fixsfdi.c,v 1.5 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/fixunsdfdi.c
--- a/lib/libc/quad/fixunsdfdi.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/fixunsdfdi.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunsdfdi.c,v 1.9 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: fixunsdfdi.c,v 1.10 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)fixunsdfdi.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: fixunsdfdi.c,v 1.9 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: fixunsdfdi.c,v 1.10 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
#define ONE_FOURTH ((int)1 << (unsigned int)(INT_BITS - 2))
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/fixunssfdi.c
--- a/lib/libc/quad/fixunssfdi.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/fixunssfdi.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunssfdi.c,v 1.7 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: fixunssfdi.c,v 1.8 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)fixunssfdi.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: fixunssfdi.c,v 1.7 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: fixunssfdi.c,v 1.8 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
#define ONE_FOURTH ((int)1 << (unsigned int)(INT_BITS - 2))
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/floatdidf.c
--- a/lib/libc/quad/floatdidf.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/floatdidf.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatdidf.c,v 1.8 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: floatdidf.c,v 1.9 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)floatdidf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: floatdidf.c,v 1.8 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: floatdidf.c,v 1.9 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/floatdisf.c
--- a/lib/libc/quad/floatdisf.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/floatdisf.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatdisf.c,v 1.8 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: floatdisf.c,v 1.9 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)floatdisf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: floatdisf.c,v 1.8 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: floatdisf.c,v 1.9 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/floatundidf.c
--- a/lib/libc/quad/floatundidf.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/floatundidf.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatundidf.c,v 1.2 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: floatundidf.c,v 1.3 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)floatunsdidf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: floatundidf.c,v 1.2 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: floatundidf.c,v 1.3 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/floatundisf.c
--- a/lib/libc/quad/floatundisf.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/floatundisf.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatundisf.c,v 1.2 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: floatundisf.c,v 1.3 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)floatdisf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: floatundisf.c,v 1.2 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: floatundisf.c,v 1.3 2012/08/05 04:28:58 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
+#ifdef SOFTFLOAT
+#include "softfloat/softfloat-for-gcc.h"
+#endif
+
#include "quad.h"
/*
diff -r 1939a2621099 -r fc2f793b9ac5 lib/libc/quad/floatunditf_ieee754.c
--- a/lib/libc/quad/floatunditf_ieee754.c Sun Aug 05 04:27:42 2012 +0000
+++ b/lib/libc/quad/floatunditf_ieee754.c Sun Aug 05 04:28:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatunditf_ieee754.c,v 1.3 2012/03/25 19:53:18 christos Exp $ */
+/* $NetBSD: floatunditf_ieee754.c,v 1.4 2012/08/05 04:28:58 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,10 +38,14 @@
#if 0
static char sccsid[] = "@(#)floatunsdidf.c 8.1 (Berkeley) 6/4/93";
#else
Home |
Main Index |
Thread Index |
Old Index