From e862aada834365440fc500cb463f2c62edb6142f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Jul 2000 17:12:50 +0000 Subject: Define RETURN_ADDRESS macro. --- include/libc-symbols.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 147dca3542..71a944e4a5 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -163,6 +163,10 @@ # define __builtin_expect(expr, val) (expr) #endif +/* Determine the return address. */ +#define RETURN_ADDRESS(nr) \ + __builtin_extract_return_addr (__builtin_return_address (nr)) + /* When a reference to SYMBOL is encountered, the linker will emit a warning message MSG. */ #ifdef HAVE_GNU_LD -- cgit v1.2.3