summaryrefslogtreecommitdiff
path: root/devel/boehm-gc/patches
diff options
context:
space:
mode:
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