aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/getcallerpc-x86_64.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-07 15:31:01 -0500
committerRuss Cox <rsc@swtch.com>2020-01-07 15:31:51 -0500
commit540caa5873bcc3bc2a0e1896119f5b53a0e8e630 (patch)
tree63ada739912d30befce1346d2e3a77e6317f7b16 /src/lib9/getcallerpc-x86_64.c
parent2897735523dd05a4ef21d25d3d99fa7fa0b24b44 (diff)
downloadplan9port-540caa5873bcc3bc2a0e1896119f5b53a0e8e630.tar.gz
plan9port-540caa5873bcc3bc2a0e1896119f5b53a0e8e630.tar.bz2
plan9port-540caa5873bcc3bc2a0e1896119f5b53a0e8e630.zip
lib9: remove getcallerpc implementations
These make no sense and are not really needed at all. Add a best-effort attempt to get at the gcc/clang macro in lib9.h, but if it fails, no big deal. Fixes #324.
Diffstat (limited to 'src/lib9/getcallerpc-x86_64.c')
-rw-r--r--src/lib9/getcallerpc-x86_64.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib9/getcallerpc-x86_64.c b/src/lib9/getcallerpc-x86_64.c
deleted file mode 100644
index 1367370e..00000000
--- a/src/lib9/getcallerpc-x86_64.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <lib9.h>
-
-ulong
-getcallerpc(void *x)
-{
- return (((ulong*)(x))[-1]);
-}