Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Add the (void)&acc; hack from strtouq.c to s...
details: https://anonhg.NetBSD.org/src/rev/c0d7ff6c2855
branches: trunk
changeset: 485646:c0d7ff6c2855
user: is <is%NetBSD.org@localhost>
date: Tue May 02 12:39:03 2000 +0000
description:
Add the (void)&acc; hack from strtouq.c to strtoull.c. This works around
an arm32 compiler bug. Change the comment in strtouq.c to reflect the current
usage of the hack.
diffstat:
lib/libc/stdlib/strtoull.c | 9 +++++++--
lib/libc/stdlib/strtouq.c | 6 +++---
2 files changed, 10 insertions(+), 5 deletions(-)
diffs (57 lines):
diff -r a9821e38638f -r c0d7ff6c2855 lib/libc/stdlib/strtoull.c
--- a/lib/libc/stdlib/strtoull.c Tue May 02 12:22:23 2000 +0000
+++ b/lib/libc/stdlib/strtoull.c Tue May 02 12:39:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtoull.c,v 1.2 2000/03/07 20:02:00 kleink Exp $ */
+/* $NetBSD: strtoull.c,v 1.3 2000/05/02 12:39:03 is Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)strtoul.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strtoull.c,v 1.2 2000/03/07 20:02:00 kleink Exp $");
+__RCSID("$NetBSD: strtoull.c,v 1.3 2000/05/02 12:39:03 is Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -75,6 +75,11 @@
_DIAGASSERT(nptr != NULL);
/* endptr may be NULL */
+#ifdef __GNUC__
+ /* This outrageous construct works around an arm32 compiler bug. */
+ (void) &acc;
+#endif
+
/*
* See strtol for comments as to the logic used.
*/
diff -r a9821e38638f -r c0d7ff6c2855 lib/libc/stdlib/strtouq.c
--- a/lib/libc/stdlib/strtouq.c Tue May 02 12:22:23 2000 +0000
+++ b/lib/libc/stdlib/strtouq.c Tue May 02 12:39:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtouq.c,v 1.14 2000/03/08 20:17:21 kleink Exp $ */
+/* $NetBSD: strtouq.c,v 1.15 2000/05/02 12:39:03 is Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)strtouq.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strtouq.c,v 1.14 2000/03/08 20:17:21 kleink Exp $");
+__RCSID("$NetBSD: strtouq.c,v 1.15 2000/05/02 12:39:03 is Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -71,7 +71,7 @@
/* endptr may be NULL */
#ifdef __GNUC__
- /* This outrageous construct just to shut up a GCC warning. */
+ /* This outrageous construct works around an arm32 compiler bug. */
(void) &acc;
#endif
Home |
Main Index |
Thread Index |
Old Index