about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libc-symbols.h4
1 files changed, 4 insertions, 0 deletions
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