diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index eaef529ba80..60eac094906 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,9 @@ +2007-10-10 John David Anglin + + PR boehm-gc/33442 + * pthread_support.c (GC_PTR GC_get_thread_stack_base): If stack grows + up, return stack_addr instead of stack_addr - stack_size. + 2007-08-14 David Daney * include/private/gcconfig.h: Handle mips64-linux n64 ABI. diff --git a/boehm-gc/pthread_support.c b/boehm-gc/pthread_support.c index 8210357766c..57c8a16a1fa 100644 --- a/boehm-gc/pthread_support.c +++ b/boehm-gc/pthread_support.c @@ -1153,7 +1153,7 @@ GC_PTR GC_get_thread_stack_base() # ifdef STACK_GROWS_DOWN return stack_addr + stack_size; # else - return stack_addr - stack_size; + return stack_addr; # endif # else