summaryrefslogtreecommitdiff
path: root/lib/libc/softfloat/softfloat-specialize
diff options
context:
space:
mode:
authorjmmv <jmmv@NetBSD.org>2004-09-26 21:13:27 +0000
committerjmmv <jmmv@NetBSD.org>2004-09-26 21:13:27 +0000
commit8a1eb34d66ce11428c108b22b72928f393e67603 (patch)
treeb8acb1dff0cf4ceca6723d19ba8c44fbb02c5608 /lib/libc/softfloat/softfloat-specialize
parent25b218cbd77cc54b41627da730d56576fc77f0d8 (diff)
Add support to build the mac68k port with soft-float enabled (i.e., setting
MKSOFTFLOAT=yes). The main purpose of this feature is to let NetBSD work in machines with the 68040LC chip (those that have the FPU bug). All the work has been done by Bruce O'Neel <edoneel AT sdf.lonestar.org>, with some very minor changes by me; the patches were being posted to the port-mac68k mailing list. It has been tested for a long time by several users, including me. I have just verified that regular releases, as well as soft-float ones, continue to build. There have been no objections to this patch since I asked for them in July in the port-mac68k list.
Diffstat (limited to 'lib/libc/softfloat/softfloat-specialize')
-rw-r--r--lib/libc/softfloat/softfloat-specialize8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/softfloat/softfloat-specialize b/lib/libc/softfloat/softfloat-specialize
index 8ff3befd02a..b9853e4670c 100644
--- a/lib/libc/softfloat/softfloat-specialize
+++ b/lib/libc/softfloat/softfloat-specialize
@@ -1,4 +1,4 @@
-/* $NetBSD: softfloat-specialize,v 1.3 2002/05/12 13:12:45 bjh21 Exp $ */
+/* $NetBSD: softfloat-specialize,v 1.4 2004/09/26 21:13:27 jmmv Exp $ */
/* This is a derivative work. */
@@ -103,7 +103,8 @@ 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)
+#if defined(SOFTFLOAT_FOR_GCC) && !defined(SOFTFLOATSPARC64_FOR_GCC) && \
+ !defined(SOFTFLOAT_M68K_FOR_GCC)
static
#endif
flag float32_is_signaling_nan( float32 a )
@@ -202,7 +203,8 @@ 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)
+#if defined(SOFTFLOAT_FOR_GCC) && !defined(SOFTFLOATSPARC64_FOR_GCC) && \
+ !defined(SOFTFLOATM68K_FOR_GCC)
static
#endif
flag float64_is_signaling_nan( float64 a )