summaryrefslogtreecommitdiff
path: root/devel/boehm-gc/patches/patch-ai
blob: c84ed2d2a41e004e0d98bc391c338d4ed383b0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ai,v 1.2 2001/09/08 00:36:10 kei Exp $

*** include/gc.h.orig	Thu Mar 29 19:57:39 2001
--- include/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