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>2003-11-30 05:19:45 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-30 05:19:45 +0300
commitb63ba3b6aaa71856f1d01cfc235c4d11b3e3ad8f (patch)
tree5f2a16b204aa3c865a74b3770aa0cb8e185323fb /winsup
parentf3a1e23eb385bdf9dd71676aebb9b64cf617ec7a (diff)
* exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack location
rather than the actual stack pointer.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/Makefile.in2
-rw-r--r--winsup/cygwin/exceptions.cc4
-rw-r--r--winsup/cygwin/pinfo.h2
-rw-r--r--winsup/cygwin/sigproc.h2
5 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ef86002a0..eac4aa6df 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-29 Christopher Faylor <cgf@redhat.com>
+
+ * exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack
+ location rather than the actual stack pointer.
+
2003-11-29 Nicholas Wourms <nwourms@netscape.net>
* Makefile.in: (DLL_OFILES): Add flock.o.
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index c445e8667..b7bcbe532 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -54,7 +54,7 @@ CC_FOR_TARGET:=$(CC)
CFLAGS=@CFLAGS@ -fmerge-constants -ftracer
override CFLAGS+=-MMD ${$(*F)_CFLAGS}
CXX=@CXX@
-CXXFLAGS=@CXXFLAGS@ -fmerge-constants
+CXXFLAGS=@CXXFLAGS@
AR:=@AR@
AR_FLAGS:=qv
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index ef2bf2270..6e5aa3059 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -189,8 +189,8 @@ _threadinfo::pop ()
assert (stackptr > stack);
#endif
__stack_t res = *--stackptr;
-#ifndef DEBUGGING
- _my_tls.stackptr = 0;
+#ifdef DEBUGGING
+ *stackptr = 0;
debug_printf ("popped %p, stack %p, stackptr %p", res, stack, stackptr);
#endif
return res;
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index a8ca9f92f..1fd222bf5 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -26,8 +26,6 @@ enum picom
PICOM_FIFO = 2
};
-extern struct sigaction *global_sigs;
-
class _pinfo
{
public:
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index 834a569b2..f55618b67 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -86,6 +86,8 @@ void __stdcall sigalloc ();
extern char myself_nowait_dummy[];
+extern struct sigaction *global_sigs;
+
#define WAIT_SIG_PRIORITY THREAD_PRIORITY_TIME_CRITICAL
#define myself_nowait ((_pinfo *)myself_nowait_dummy)