Sun May 5 14:53:22 2024 UTC (14d)
libm: No s_rintl.c on mips32.

This is only for machines where long double is not double.

Not 100% sure this is the right criterion, but there's a good chance
it is.


(riastradh)
diff -r1.229 -r1.230 src/lib/libm/Makefile

cvs diff -r1.229 -r1.230 src/lib/libm/Makefile (expand / switch to unified diff)

--- src/lib/libm/Makefile 2024/05/05 11:07:49 1.229
+++ src/lib/libm/Makefile 2024/05/05 14:53:22 1.230
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.229 2024/05/05 11:07:49 riastradh Exp $ 1# $NetBSD: Makefile,v 1.230 2024/05/05 14:53:22 riastradh Exp $
2# 2#
3# @(#)Makefile 5.1beta 93/09/24 3# @(#)Makefile 5.1beta 93/09/24
4# 4#
5# ==================================================== 5# ====================================================
6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7# 7#
8# Developed at SunPro, a Sun Microsystems, Inc. business. 8# Developed at SunPro, a Sun Microsystems, Inc. business.
9# Permission to use, copy, modify, and distribute this 9# Permission to use, copy, modify, and distribute this
10# software is freely granted, provided that this notice 10# software is freely granted, provided that this notice
11# is preserved. 11# is preserved.
12# ==================================================== 12# ====================================================
13# 13#
14# 14#
@@ -196,29 +196,29 @@ ARCH_SRCS += s_fmin.S s_fminf.S @@ -196,29 +196,29 @@ ARCH_SRCS += s_fmin.S s_fminf.S
196.elif (${LIBC_MACHINE_ARCH} == "powerpc") 196.elif (${LIBC_MACHINE_ARCH} == "powerpc")
197.PATH: ${.CURDIR}/arch/powerpc 197.PATH: ${.CURDIR}/arch/powerpc
198.if ${MKSOFTFLOAT} == "no" 198.if ${MKSOFTFLOAT} == "no"
199COMMON_SRCS += fenv.c 199COMMON_SRCS += fenv.c
200.endif 200.endif
201COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c 201COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
202ARCH_SRCS += s_fma.S s_fmaf.S 202ARCH_SRCS += s_fma.S s_fmaf.S
203 203
204.elif (${LIBC_MACHINE_CPU} == "mips") 204.elif (${LIBC_MACHINE_CPU} == "mips")
205.PATH: ${.CURDIR}/arch/mips 205.PATH: ${.CURDIR}/arch/mips
206.if ${MKSOFTFLOAT} == "no" 206.if ${MKSOFTFLOAT} == "no"
207COMMON_SRCS += fenv.c 207COMMON_SRCS += fenv.c
208.endif 208.endif
209COMMON_SRCS+= s_rintl.c 
210.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)) 209.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
211COMMON_SRCS+= s_nexttoward.c 210COMMON_SRCS+= s_nexttoward.c
 211COMMON_SRCS+= s_rintl.c
212.endif 212.endif
213COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c 213COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
214 214
215.elif (${LIBC_MACHINE_CPU} == "sh3") 215.elif (${LIBC_MACHINE_CPU} == "sh3")
216.PATH: ${.CURDIR}/arch/sh3 216.PATH: ${.CURDIR}/arch/sh3
217.if ${MKSOFTFLOAT} == "no" 217.if ${MKSOFTFLOAT} == "no"
218COMMON_SRCS += fenv.c 218COMMON_SRCS += fenv.c
219.endif 219.endif
220COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c 220COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
221.endif 221.endif
222# End of list of CPU tests 222# End of list of CPU tests
223 223
224WARNS?=5 224WARNS?=5