Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm s_nexttoward.c does not make sense compiling for 32...



details:   https://anonhg.NetBSD.org/src/rev/c7e9bc0a80bd
branches:  trunk
changeset: 789562:c7e9bc0a80bd
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 22 08:24:30 2013 +0000

description:
s_nexttoward.c does not make sense compiling for 32 bit sparc (double ==
long double), so ifdef it out in the sparc64 compat library build. I hope
the nextafter alias is set up correctly (where?) - and someone please
suggest a better way for this if clause.

diffstat:

 lib/libm/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 6d02b1926508 -r c7e9bc0a80bd lib/libm/Makefile
--- a/lib/libm/Makefile Thu Aug 22 07:17:11 2013 +0000
+++ b/lib/libm/Makefile Thu Aug 22 08:24:30 2013 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.140 2013/08/21 13:06:00 martin Exp $
+#  $NetBSD: Makefile,v 1.141 2013/08/22 08:24:30 martin Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -66,8 +66,11 @@
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 .elif (${MACHINE_ARCH} == "sparc64")
 .PATH: ${.CURDIR}/arch/sparc64
-COMMON_SRCS+= fenv.c s_nexttoward.c s_nexttowardf.c \
+COMMON_SRCS+= fenv.c s_nexttowardf.c \
        s_nearbyint.c s_rintl.c
+.ifndef _COMPAT_M32_MK_
+COMMON_SRCS+= s_nexttoward.c
+.endif
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 .elif ((${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64"))
 



Home | Main Index | Thread Index | Old Index