aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-10-07 02:38:15 +0000
committerChristopher Faylor <me@cgf.cx>2008-10-07 02:38:15 +0000
commitf241db6f60c8f4867507c0b8abe5a584e7969aca (patch)
tree32c1493fc6d6c392703a35be0386c1918d810a6d /winsup
parent7dfaa59e8253e9d49277a75611a3a6d9e5366e78 (diff)
downloadnewlib-f241db6f60c8f4867507c0b8abe5a584e7969aca.zip
newlib-f241db6f60c8f4867507c0b8abe5a584e7969aca.tar.gz
newlib-f241db6f60c8f4867507c0b8abe5a584e7969aca.tar.bz2
* cygtls.h (_cygtls::initialized): Remove bogus stack check which would when
checking the current thread from the current thread.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/cygtls.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 950130f..b71d45b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-06 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * cygtls.h (_cygtls::initialized): Remove bogus stack check which would
+ when checking the current thread from the current thread.
+ * tlsoffsets.h: Regenerate.
+
2008-10-05 Christopher Faylor <me+cygwin@cgf.cx>
* dcrt0.cc (dll_crt0_0): Don't initialize signals early when
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 29bd1cf..7aee1ae 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -220,8 +220,7 @@ struct _cygtls
__stack_t retaddr () {return stackptr[-1];}
bool isinitialized () const
{
- volatile char here;
- return ((char *) this > &here) && initialized == CYGTLS_INITIALIZED;
+ return initialized == CYGTLS_INITIALIZED;
}
bool interrupt_now (CONTEXT *, int, void *, struct sigaction&)
__attribute__((regparm(3)));