From 0b70c413218c1b3cf862cf60fc9d3a6b58ed2b0a Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Fri, 7 May 2004 10:30:59 +0000 Subject: Patch from Yoshinori Sato . --- libc/sysdeps/linux/common/bits/machine-gmon.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/bits/machine-gmon.h b/libc/sysdeps/linux/common/bits/machine-gmon.h index eb046b068..7dd36308b 100644 --- a/libc/sysdeps/linux/common/bits/machine-gmon.h +++ b/libc/sysdeps/linux/common/bits/machine-gmon.h @@ -47,6 +47,10 @@ static void mcount_internal (u_long frompc, u_long selfpc); #define _MCOUNT_DECL(frompc, selfpc) \ static inline void mcount_internal (u_long frompc, u_long selfpc) +#ifndef RETURN_ADDRESS +#define RETURN_ADDRESS(n) __builtin_return_address(n) +#endif + #define MCOUNT \ void _mcount (void) \ { \ -- cgit v1.2.3