freebsd-ports/devel/boehm-gc-threaded/files/patch-include-gc.h
Stanislav Sedov 3c4f18635e - Add port for boehm-gc garbage collector variant with threads support.
This port will install only shared libraries with threads support enabled,
  that will allow for easy dependency handling for ports that required libgc
  build with specific features and will allow to avoid hacks of building own
  version of libgc library.
2009-12-18 04:08:01 +00:00

10 lines
444 B
C

--- include/gc.h.orig Wed Jun 4 17:07:33 2003
+++ include/gc.h Wed May 12 20:03:22 2004
@@ -487,6 +487,7 @@
/* gcc knows how to retrieve return address, but we don't know */
/* how to generate call stacks. */
# define GC_RETURN_ADDR (GC_word)__builtin_return_address(0)
+# define GC_RETURN_ADDR_PARENT (GC_word)__builtin_return_address(1)
# else
/* Just pass 0 for gcc compatibility. */
# define GC_RETURN_ADDR 0