aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-18 17:12:50 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-18 17:12:50 +0000
commite862aada834365440fc500cb463f2c62edb6142f (patch)
tree9e7fb519c18c85330f67deba299cb4fa8f52b085
parent9f791dcf5d8000189c35a460a5224bbaff6f366c (diff)
downloadglibc-e862aada834365440fc500cb463f2c62edb6142f.zip
glibc-e862aada834365440fc500cb463f2c62edb6142f.tar.gz
glibc-e862aada834365440fc500cb463f2c62edb6142f.tar.bz2
Define RETURN_ADDRESS macro.
-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 147dca3..71a944e 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