From b91faaabea22917018019f762b41272fc81965e4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 12 Feb 2004 03:07:35 +0000 Subject: [PATCH] * dcrt0.cc (alloc_stack_hard_way): Eliminate second argument. (alloc_stack): Remove use of 'b' throughout. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/dcrt0.cc | 5 ++--- 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,3 +1,8 @@ +2004-02-11 Christopher Faylor + + * dcrt0.cc (alloc_stack_hard_way): Eliminate second argument. + (alloc_stack): Remove use of 'b' throughout. + 2004-02-11 Christopher Faylor Rename _threadinfo to _cygtls, throughout. 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; }