Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gmon Add a __used__ attribute next to the __unused_...
details: https://anonhg.NetBSD.org/src/rev/8cafebd20e58
branches: trunk
changeset: 580455:8cafebd20e58
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 24 18:15:52 2005 +0000
description:
Add a __used__ attribute next to the __unused__ attribute, because we don't
want the optimizer to get rid of the whole code erroneously (which happens
with -O6 on sparc64).
diffstat:
lib/libc/gmon/mcount.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cbdf18a50b2f -r 8cafebd20e58 lib/libc/gmon/mcount.c
--- a/lib/libc/gmon/mcount.c Sun Apr 24 17:46:06 2005 +0000
+++ b/lib/libc/gmon/mcount.c Sun Apr 24 18:15:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcount.c,v 1.14 2004/05/10 22:16:42 thorpej Exp $ */
+/* $NetBSD: mcount.c,v 1.15 2005/04/24 18:15:52 christos 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.14 2004/05/10 22:16:42 thorpej Exp $");
+__RCSID("$NetBSD: mcount.c,v 1.15 2005/04/24 18:15:52 christos Exp $");
#endif
#endif
@@ -87,7 +87,7 @@
struct gmonparam *_m_gmon_alloc(void);
#endif
-_MCOUNT_DECL __P((u_long, u_long)) __attribute__((__unused__)); /* see below. */
+_MCOUNT_DECL __P((u_long, u_long)) __attribute__((__unused__,__used__)); /* see below. */
/*
* mcount is called on entry to each function compiled with the profiling
Home |
Main Index |
Thread Index |
Old Index