From 16780405c899f01119bc45167122b4242f6b34fb Mon Sep 17 00:00:00 2001 From: ivmai Date: Fri, 4 Dec 2009 10:20:18 +0000 Subject: [PATCH] 2009-12-04 Ivan Maidanski * mark_rts.c (GC_approx_sp): Add a comment (for GCC). --- ChangeLog | 4 ++++ mark_rts.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 69cb86fb..5b42b268 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-04 Ivan Maidanski + + * mark_rts.c (GC_approx_sp): Add a comment (for GCC). + 2009-12-04 Ivan Maidanski * include/gc_version.h, configure.ac, doc/README: Change to diff --git a/mark_rts.c b/mark_rts.c index f53393e5..8afefdc2 100644 --- a/mark_rts.c +++ b/mark_rts.c @@ -365,6 +365,8 @@ GC_INNER ptr_t GC_approx_sp(void) /* later accesses might cause the kernel to think we're */ /* doing something wrong. */ return((ptr_t)sp); + /* GNU C: alternatively, we may return the value of */ + /*__builtin_frame_address(0). */ } /* -- 2.40.0