* 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.
This commit is contained in:
Christopher Faylor
2002-01-19 18:15:23 +00:00
parent df3af7731e
commit 994fe87b6e
4 changed files with 12 additions and 5 deletions

View File

@@ -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; \
})