summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog6
-rw-r--r--boehm-gc/pthread_support.c2
2 files changed, 7 insertions, 1 deletions
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 <dave.anglin@nrc-cnrc.gc.ca>
+
+ 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 <ddaney@avtrex.com>
* 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