Source-Changes-HG archive

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

[src/trunk]: src The support of <fenv.h> is actually for __sparc64__, not for...



details:   https://anonhg.NetBSD.org/src/rev/4cffbf4bcb04
branches:  trunk
changeset: 765021:4cffbf4bcb04
user:      he <he%NetBSD.org@localhost>
date:      Mon May 16 07:59:18 2011 +0000

description:
The support of <fenv.h> is actually for __sparc64__, not for __sparc__
(which is also defined on sparc64).  This fixes a build problem for
plain sparc.

diffstat:

 include/fenv.h                   |  4 ++--
 tests/lib/libc/stdlib/t_strtod.c |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 5adf11e14afd -r 4cffbf4bcb04 include/fenv.h
--- a/include/fenv.h    Mon May 16 00:59:37 2011 +0000
+++ b/include/fenv.h    Mon May 16 07:59:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fenv.h,v 1.3 2011/01/31 00:19:33 christos Exp $        */
+/*     $NetBSD: fenv.h,v 1.4 2011/05/16 07:59:19 he Exp $      */
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if !defined(__i386__) && !defined(__amd64__) && !defined(__sparc__)
+#if !defined(__i386__) && !defined(__amd64__) && !defined(__sparc64__)
 #error "fenv.h is currently not supported for this architecture"
 #endif
 
diff -r 5adf11e14afd -r 4cffbf4bcb04 tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c  Mon May 16 00:59:37 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c  Mon May 16 07:59:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $ */
+/*     $NetBSD: t_strtod.c,v 1.10 2011/05/16 07:59:18 he 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.9 2011/05/10 19:18:19 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.10 2011/05/16 07:59:18 he Exp $");
 
 #include <errno.h>
 #include <math.h>
@@ -43,7 +43,7 @@
 #include <atf-c.h>
 #include <atf-c/config.h>
 
-#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__)
 #include <fenv.h>
 #endif
 
@@ -136,7 +136,7 @@
 
 ATF_TC_BODY(strtod_round, tc)
 {
-#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__)
 
        const char *val;
        double d1, d2;



Home | Main Index | Thread Index | Old Index