summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-17 20:07:18 +0000
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-17 20:07:18 +0000
commit48f7051c911181b554d7d0d63df75409633afa29 (patch)
tree97b9487f70b2bd043c047eb4becd9061bdcfd86b /boehm-gc
parent0969aa9b3d99874b004c7cfc9dba1eba44ec7b7c (diff)
downloadgcc-48f7051c911181b554d7d0d63df75409633afa29.tar.gz
* win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147641 138bc75d-0d04-0410-961f-82ee72b054a4
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 ed6ee543650..d2a80cc1fcb 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 ba53d86fbd1..ffb34e0a8b1 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 */
/*