diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-19 18:15:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-19 18:15:23 +0000 |
commit | 994fe87b6ec1c4e59d6b9894ab31963666d70922 (patch) | |
tree | 68743023a8f52f37bf4eb16e92e685b19f995b27 /winsup/cygwin/sync.h | |
parent | df3af7731e0fbfab673c02a7b31dfdb88ec75d60 (diff) | |
download | cygnal-994fe87b6ec1c4e59d6b9894ab31963666d70922.tar.gz cygnal-994fe87b6ec1c4e59d6b9894ab31963666d70922.tar.bz2 cygnal-994fe87b6ec1c4e59d6b9894ab31963666d70922.zip |
* Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link.
* sigproc.cc (proc_exists): Change existence criteria.
* sync.h (new_muto): Add volatile to definition to avoid gcc optimization
problems.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r-- | winsup/cygwin/sync.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h index a32dadb97..d546b71e5 100644 --- a/winsup/cygwin/sync.h +++ b/winsup/cygwin/sync.h @@ -48,9 +48,9 @@ extern muto muto_start; /* Use a statically allocated buffer as the storage for a muto */ #define new_muto(__inh, __name) \ ({ \ - static __attribute__((section(".data_cygwin_nocopy"))) muto __mbuf; \ + static volatile __attribute__((section(".data_cygwin_nocopy"))) muto __mbuf; \ (void) new ((void *) &__mbuf) muto (__inh, __name); \ __mbuf.next = muto_start.next; \ - muto_start.next = &__mbuf; \ - &__mbuf; \ + muto_start.next = (muto *) &__mbuf; \ + (muto *) &__mbuf; \ }) |