summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dcrt0.cc5
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2cc0cb88b..87a2f035b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2004-02-11 Christopher Faylor <cgf@redhat.com>
+ * dcrt0.cc (alloc_stack_hard_way): Eliminate second argument.
+ (alloc_stack): Remove use of 'b' throughout.
+
+2004-02-11 Christopher Faylor <cgf@redhat.com>
+
Rename _threadinfo to _cygtls, throughout.
* cygtls.h (_cygtls::call_signal_handler): Rename from
call_signal_handler_now.
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 374c901b4..b824e3a51 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -461,7 +461,7 @@ static MEMORY_BASIC_INFORMATION NO_COPY sm;
// __inline__ void
extern void
-alloc_stack_hard_way (child_info_fork *ci, volatile char *b)
+alloc_stack_hard_way (child_info_fork *ci)
{
void *new_stack_pointer;
MEMORY_BASIC_INFORMATION m;
@@ -505,7 +505,6 @@ alloc_stack_hard_way (child_info_fork *ci, volatile char *b)
if (!VirtualQuery ((LPCVOID) m.BaseAddress, &m, sizeof m))
api_fatal ("fork: couldn't get new stack info, %E");
ci->stacktop = m.BaseAddress;
- *b = 0;
}
/* extend the stack prior to fork longjmp */
@@ -522,7 +521,7 @@ alloc_stack (child_info_fork *ci)
return;
}
- alloc_stack_hard_way (ci, b + sizeof (b) - 1);
+ alloc_stack_hard_way (ci);
return;
}