$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
