summaryrefslogtreecommitdiff
path: root/devel/boehm-gc/patches
diff options
context:
space:
mode:
authorthorpej <thorpej@pkgsrc.org>2001-03-30 04:08:34 +0000
committerthorpej <thorpej@pkgsrc.org>2001-03-30 04:08:34 +0000
commit3ee0dc48d984844fe4d7309b8b23a114d08960be (patch)
tree1470554468a686608446fa55f6e0828c7a50e888 /devel/boehm-gc/patches
parentf61eb1a0d6133e43aaeffa48585d78d52b258e89 (diff)
downloadpkgsrc-3ee0dc48d984844fe4d7309b8b23a114d08960be.tar.gz
Use __builtin_return_address(0) to get the PC of the caller.
Diffstat (limited to 'devel/boehm-gc/patches')
-rw-r--r--devel/boehm-gc/patches/patch-ai18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/boehm-gc/patches/patch-ai b/devel/boehm-gc/patches/patch-ai
new file mode 100644
index 00000000000..f19b148a045
--- /dev/null
+++ b/devel/boehm-gc/patches/patch-ai
@@ -0,0 +1,18 @@
+$NetBSD: patch-ai,v 1.1 2001/03/30 04:08:34 thorpej Exp $
+
+*** gc.h.orig Thu Mar 29 19:57:39 2001
+--- gc.h Thu Mar 29 20:00:24 2001
+***************
+*** 370,375 ****
+--- 370,380 ----
+ # define GC_RETURN_ADDR (GC_word)__return_address
+ #endif
+
++ #if defined(__GNUC__)
++ # define GC_ADD_CALLER
++ # define GC_RETURN_ADDR (GC_word)__builtin_return_address(0)
++ #endif
++
+ #ifdef GC_ADD_CALLER
+ # define GC_EXTRAS GC_RETURN_ADDR, __FILE__, __LINE__
+ # define GC_EXTRA_PARAMS GC_word ra, GC_CONST char * s, int i