From 8a1eb34d66ce11428c108b22b72928f393e67603 Mon Sep 17 00:00:00 2001 From: jmmv Date: Sun, 26 Sep 2004 21:13:27 +0000 Subject: 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 , 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. --- lib/libc/softfloat/softfloat-specialize | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/libc/softfloat/softfloat-specialize') 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 ) -- cgit