diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-11 00:36:08 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-11 00:36:08 +0000 |
commit | f689887926c2909310f4d1b3af8b394d1aec4be6 (patch) | |
tree | b27baf1a5178f74b987a2a1641dc7b8220b50be4 /boehm-gc | |
parent | 078f473dde3b41bbdc36dc1f31fe3cada18765fc (diff) | |
download | gcc-f689887926c2909310f4d1b3af8b394d1aec4be6.tar.gz |
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
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 6 | ||||
-rw-r--r-- | boehm-gc/pthread_support.c | 2 |
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 |