Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc Fix so that float128_to_uint64_round_to_zero is def...
details: https://anonhg.NetBSD.org/src/rev/657f62e95bbe
branches: trunk
changeset: 767164:657f62e95bbe
user: matt <matt%NetBSD.org@localhost>
date: Sun Jul 10 04:52:23 2011 +0000
description:
Fix so that float128_to_uint64_round_to_zero is defined for sparc64.
(isn't tha a namespace violation?)
diffstat:
lib/libc/arch/sparc64/Makefile.inc | 3 ++-
lib/libc/softfloat/bits64/softfloat.c | 9 +++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (54 lines):
diff -r ea9cd3d5bb1b -r 657f62e95bbe lib/libc/arch/sparc64/Makefile.inc
--- a/lib/libc/arch/sparc64/Makefile.inc Sun Jul 10 04:49:37 2011 +0000
+++ b/lib/libc/arch/sparc64/Makefile.inc Sun Jul 10 04:52:23 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2011/06/22 05:23:53 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.17 2011/07/10 04:52:23 matt Exp $
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
@@ -8,6 +8,7 @@
.PATH: ${ARCHDIR}/softfloat
SRCS+= qp.c
CPPFLAGS+= -DSOFTFLOATSPARC64_FOR_GCC -DEXCEPTIONS_WITH_SOFTFLOAT
+CPPFLAGS+= -DSOFTFLOAT_NEED_FIXUNS
.if ${MKSOFTFLOAT} != "no"
.include <softfloat/Makefile.inc>
.else
diff -r ea9cd3d5bb1b -r 657f62e95bbe lib/libc/softfloat/bits64/softfloat.c
--- a/lib/libc/softfloat/bits64/softfloat.c Sun Jul 10 04:49:37 2011 +0000
+++ b/lib/libc/softfloat/bits64/softfloat.c Sun Jul 10 04:52:23 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat.c,v 1.7 2011/07/09 02:28:31 matt Exp $ */
+/* $NetBSD: softfloat.c,v 1.8 2011/07/10 04:52:23 matt Exp $ */
/*
* This version hacked for use with gcc -msoft-float by bjh21.
@@ -46,7 +46,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: softfloat.c,v 1.7 2011/07/09 02:28:31 matt Exp $");
+__RCSID("$NetBSD: softfloat.c,v 1.8 2011/07/10 04:52:23 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef SOFTFLOAT_FOR_GCC
@@ -4482,7 +4482,8 @@
}
-#if defined(SOFTFLOAT_FOR_GCC) && defined(SOFTFLOAT_NEED_FIXUNS)
+#if (defined(SOFTFLOATSPARC64_FOR_GCC) || defined(SOFTFLOAT_FOR_GCC)) \
+ && defined(SOFTFLOAT_NEED_FIXUNS)
/*
* just like above - but do not care for overflow of signed results
*/
@@ -4532,7 +4533,7 @@
return z;
}
-#endif /* defined(SOFTFLOAT_FOR_GCC) && defined(SOFTFLOAT_NEED_FIXUNS) */
+#endif /* (SOFTFLOATSPARC64_FOR_GCC || SOFTFLOAT_FOR_GCC) && SOFTFLOAT_NEED_FIXUNS */
/*
-------------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index