Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-01-19 21:15:23 +0300
committerChristopher Faylor <me@cgf.cx>2002-01-19 21:15:23 +0300
commit994fe87b6ec1c4e59d6b9894ab31963666d70922 (patch)
tree68743023a8f52f37bf4eb16e92e685b19f995b27 /winsup
parentdf3af7731e0fbfab673c02a7b31dfdb88ec75d60 (diff)
* 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')
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/Makefile.in2
-rw-r--r--winsup/cygwin/sigproc.cc2
-rw-r--r--winsup/cygwin/sync.h6
4 files changed, 12 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a40996482..5df79ae7a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+2002-01-19 Christopher Faylor <cgf@redhat.com>
+
+ * 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.
+
2002-01-19 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/version.h: Bump API minor version to 51.
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index ac4502dcd..89a0ffdc2 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -245,7 +245,7 @@ new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(
$(CXX) $(CXXFLAGS) -nostdlib -Wl,-T$(firstword $^) -Wl,--out-implib,cygdll.a -shared -o $@ \
-e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \
$(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \
- -lstdc++ -lgcc -lshell32 -luuid
+ -lsupc++ -lgcc -lshell32 -luuid
# Rule to build libcygwin.a
$(LIB_NAME): rmsym newsym new-$(DLL_NAME) $(LIBCOS)
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index ef70fa232..bfe5f9901 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -228,7 +228,7 @@ pid_exists (pid_t pid)
BOOL __stdcall
proc_exists (_pinfo *p)
{
- return p && !(p->process_state & (PID_INITIALIZING | PID_EXITED));
+ return p && !(p->process_state & PID_EXITED);
}
/* Return 1 if this is one of our children, zero otherwise.
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; \
})