Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc Put have fenv elsewhere.
details: https://anonhg.NetBSD.org/src/rev/0a27a2d4aa66
branches: trunk
changeset: 342442:0a27a2d4aa66
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 22 14:18:35 2015 +0000
description:
Put have fenv elsewhere.
diffstat:
tests/lib/libc/gen/Makefile | 10 +---------
tests/lib/libc/stdlib/t_strtod.c | 8 +++-----
2 files changed, 4 insertions(+), 14 deletions(-)
diffs (63 lines):
diff -r bc6aed8ba45a -r 0a27a2d4aa66 tests/lib/libc/gen/Makefile
--- a/tests/lib/libc/gen/Makefile Tue Dec 22 13:37:01 2015 +0000
+++ b/tests/lib/libc/gen/Makefile Tue Dec 22 14:18:35 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2015/12/22 08:26:16 martin Exp $
+# $NetBSD: Makefile,v 1.48 2015/12/22 14:18:35 christos Exp $
.include <bsd.own.mk>
@@ -39,16 +39,8 @@
TESTS_C+= t_ttyname
TESTS_C+= t_vis
-.if ${MACHINE_CPU} == "aarch64" || ${MACHINE_CPU} == "arm" \
- || ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "powerpc" \
- || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
- || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" \
- || ${MACHINE_ARCH} == "mips"
-CPPFLAGS.t_siginfo.c+= -DHAVE_FENV
LDADD.t_siginfo+= -lm
DPADD.t_siginfo+= ${LIBM}
-.endif
-
LDADD.t_fpclassify+= -lm
DPADD.t_fpclassify+= ${LIBM}
LDADD.t_fpsetround+= -lm
diff -r bc6aed8ba45a -r 0a27a2d4aa66 tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c Tue Dec 22 13:37:01 2015 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c Tue Dec 22 14:18:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.33 2014/12/27 18:03:41 martin Exp $ */
+/* $NetBSD: t_strtod.c,v 1.34 2015/12/22 14:19:25 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/* Public domain, Otto Moerbeek <otto%drijf.net@localhost>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.33 2014/12/27 18:03:41 martin Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.34 2015/12/22 14:19:25 christos Exp $");
#include <errno.h>
#include <math.h>
@@ -42,9 +42,7 @@
#include <atf-c.h>
-#ifdef HAVE_FENV
#include <fenv.h>
-#endif
#if !defined(__vax__)
static const char * const inf_strings[] =
@@ -238,7 +236,7 @@
ATF_TC_BODY(strtod_round, tc)
{
-#ifdef HAVE_FENV
+#ifdef __HAVE_FENV
/*
* Test that strtod(3) honors the current rounding mode.
Home |
Main Index |
Thread Index |
Old Index