OSDN Git Service

* win32_threads.c (GC_get_thread_stack_base): Implement for Cygwin.
[pf3gnuchains/gcc-fork.git] / boehm-gc / mark_rts.c
index 55eb5d5..4074879 100644 (file)
@@ -368,8 +368,11 @@ ptr_t p;
 
 ptr_t GC_approx_sp()
 {
-    word dummy;
+    VOLATILE word dummy;
 
+    dummy = 42;        /* Force stack to grow if necessary.    Otherwise the   */
+               /* later accesses might cause the kernel to think we're */
+               /* doing something wrong.                               */
 #   ifdef _MSC_VER
 #     pragma warning(disable:4172)
 #   endif