diff options
Diffstat (limited to 'libc/sysdeps/linux/common/bits/machine-gmon.h')
-rw-r--r-- | libc/sysdeps/linux/common/bits/machine-gmon.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) \ { \ |