Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src The __used__ change doesn't work on 2.95/vax. Put an #ifdef ...
details: https://anonhg.NetBSD.org/src/rev/c50582599bc5
branches: trunk
changeset: 580728:c50582599bc5
user: jmc <jmc%NetBSD.org@localhost>
date: Fri May 06 19:32:30 2005 +0000
description:
The __used__ change doesn't work on 2.95/vax. Put an #ifdef back in for vax and
reverted it to __unused__ as it was before
diffstat:
doc/HACKS | 13 +++++++++++--
lib/libc/gmon/mcount.c | 8 ++++++--
2 files changed, 17 insertions(+), 4 deletions(-)
diffs (64 lines):
diff -r bbe5c517cc31 -r c50582599bc5 doc/HACKS
--- a/doc/HACKS Fri May 06 16:49:25 2005 +0000
+++ b/doc/HACKS Fri May 06 19:32:30 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.43 2005/04/05 11:56:09 tron Exp $
+# $NetBSD: HACKS,v 1.44 2005/05/06 19:32:30 jmc Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -113,6 +113,15 @@
port vax
+ hack gcc 2.95/vax can't handle __used__ in mcount.c
+ cdate Fri May 6 14:30:53 CDT 2005
+ who jmc
+ file src/lib/libc/gmon/mcount.c 1.17
+ descr
+ Recent changes to mark this as __used__ to prevent optimization
+ away on sparc64 don't work on 2.95 vax. Ifdef'd back in the
+ old __unused__ if on vax.
+
hack gcc 2.95/vax cannot handle __builtin_ffs()
cdate Fri Aug 23 21:31:15 CEST 2002
who ragge
@@ -120,7 +129,7 @@
descr
__builtin_ffs() is ifdef'd away if __vax__. Matt Thomas has
added this feature to GCC 3 so it can be removed when switching.
- kcah
+
hack gcc-vax-libbz2
mdate 27 Jun 2002
diff -r bbe5c517cc31 -r c50582599bc5 lib/libc/gmon/mcount.c
--- a/lib/libc/gmon/mcount.c Fri May 06 16:49:25 2005 +0000
+++ b/lib/libc/gmon/mcount.c Fri May 06 19:32:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcount.c,v 1.16 2005/04/24 18:18:52 christos Exp $ */
+/* $NetBSD: mcount.c,v 1.17 2005/05/06 19:32:30 jmc Exp $ */
/*
* Copyright (c) 2003, 2004 Wasabi Systems, Inc.
@@ -72,7 +72,7 @@
#if 0
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: mcount.c,v 1.16 2005/04/24 18:18:52 christos Exp $");
+__RCSID("$NetBSD: mcount.c,v 1.17 2005/05/06 19:32:30 jmc Exp $");
#endif
#endif
@@ -87,7 +87,11 @@
struct gmonparam *_m_gmon_alloc(void);
#endif
+#ifdef __vax__
+_MCOUNT_DECL __P((u_long, u_long)) __attribute__((__unused__)); /* see below. */
+#else
_MCOUNT_DECL __P((u_long, u_long)) __attribute__((__used__)); /* see below. */
+#endif
/*
* mcount is called on entry to each function compiled with the profiling
Home |
Main Index |
Thread Index |
Old Index