From: John David Anglin Date: Sat, 13 Oct 2007 15:01:29 +0000 (+0000) Subject: re PR boehm-gc/33442 (1938 unexpected fails in libjava testsuite) X-Git-Tag: prereleases/gcc-4.2.3-rc1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f88ac0fb677a4c0cf069a28f5a47818967e47d74;p=thirdparty%2Fgcc.git re PR boehm-gc/33442 (1938 unexpected fails in libjava testsuite) 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. From-SVN: r129283 --- diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 45d43ea31d65..cd0f2ee463ce 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-10-09 Andreas Tobler * include/private/gc_priv.h: Remove duplicate code for DARWIN. diff --git a/boehm-gc/pthread_support.c b/boehm-gc/pthread_support.c index 8210357766c5..57c8a16a1fa5 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