aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorDave Korn <dave.korn.cygwin@gmail.com>2009-05-17 20:07:18 +0000
committerDave Korn <davek@gcc.gnu.org>2009-05-17 20:07:18 +0000
commit68aa6c59e5e1b54f6ff4ab11586494448a216c5b (patch)
tree97b9487f70b2bd043c047eb4becd9061bdcfd86b /boehm-gc
parentae8af5003b1712523c0b09b17f21ba54b38123d7 (diff)
downloadgcc-68aa6c59e5e1b54f6ff4ab11586494448a216c5b.zip
gcc-68aa6c59e5e1b54f6ff4ab11586494448a216c5b.tar.gz
gcc-68aa6c59e5e1b54f6ff4ab11586494448a216c5b.tar.bz2
win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin.
* win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin. From-SVN: r147641
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog4
-rw-r--r--boehm-gc/win32_threads.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index ed6ee54..d2a80cc 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-17 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin.
+
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
diff --git a/boehm-gc/win32_threads.c b/boehm-gc/win32_threads.c
index ba53d86..ffb34e0 100644
--- a/boehm-gc/win32_threads.c
+++ b/boehm-gc/win32_threads.c
@@ -753,6 +753,12 @@ int GC_pthread_detach(pthread_t thread)
return result;
}
+GC_PTR GC_get_thread_stack_base()
+{
+ extern GC_PTR _tlsbase __asm__ ("%fs:4");
+ return _tlsbase;
+}
+
#else /* !CYGWIN32 */
/*