From 30c23176626bd25a38b557adcb8704930e3142da Mon Sep 17 00:00:00 2001 From: danglin Date: Thu, 11 Oct 2007 00:36:08 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129224 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog | 6 ++++++ pthread_support.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index eaef529b..60eac094 100644 --- a/ChangeLog +++ b/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/pthread_support.c b/pthread_support.c index 82103577..57c8a16a 100644 --- a/pthread_support.c +++ b/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 -- 2.40.0