From e6574c9ca263afb7d408dd5ebf09ad8cb0178469 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Jul 2000 17:18:38 +0000 Subject: Update. 2000-07-18 Kaz Kylheku * spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Fixed bug whereby thr field of waitnode structure would not be correctly set unless a null self pointer is passed to the functions. Eliminated redundant calls to thread_self(). --- sysdeps/generic/machine-gmon.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sysdeps/generic/machine-gmon.h') diff --git a/sysdeps/generic/machine-gmon.h b/sysdeps/generic/machine-gmon.h index 3b63707eaf..c0c1d7001e 100644 --- a/sysdeps/generic/machine-gmon.h +++ b/sysdeps/generic/machine-gmon.h @@ -1,5 +1,5 @@ /* Machine-dependent definitions for profiling support. Generic GCC 2 version. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ void *__builtin_return_address (unsigned int N) returns the return address of the frame N frames up. */ -/* Be warned that GCC cannot usefully compile __builtin_return_address(N) +/* Be warned that GCC cannot usefully compile __builtin_return_address(N) for N != 0 on all machines. In this case, you may have to write your own version of _mcount(). */ @@ -50,6 +50,5 @@ static inline void mcount_internal (u_long frompc, u_long selfpc) #define MCOUNT \ void _mcount (void) \ { \ - mcount_internal ((u_long) __builtin_return_address (1), \ - (u_long) __builtin_return_address (0)); \ + mcount_internal ((u_long) RETURN_ADDRESS (1), (u_long) RETURN_ADDRESS (0)); \ } -- cgit 1.4.1