https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0f02ac19102dd8e5c5722cac2f6069e646f0f42c
commit 0f02ac19102dd8e5c5722cac2f6069e646f0f42c Author: Takashi Yano <[email protected]> Date: Wed Mar 12 10:02:33 2025 +0900 Cygwin: signal: Remove context_copy in call_signal_handler() After the commit 1d97f8aa4385, context_copy in call_signal_handle() is not used anymore. This patch removes it. Fixes: 1d97f8aa4385 ("Cygwin: signals: don't evaluate SA_SIGINFO context after handler returns") Reviewed-by: Corinna Vinschen <[email protected]> Signed-off-by: Takashi Yano <[email protected]> Diff: --- winsup/cygwin/exceptions.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 86523afca..2e25aa214 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1694,7 +1694,7 @@ _cygtls::call_signal_handler () siginfo_t thissi = infodata; void (*thisfunc) (int, siginfo_t *, void *) = func; - ucontext_t *thiscontext = NULL, context_copy; + ucontext_t *thiscontext = NULL; /* Only make a context for SA_SIGINFO handlers */ if (this_sa_flags & SA_SIGINFO) @@ -1752,7 +1752,6 @@ _cygtls::call_signal_handler () ? (uintptr_t) thissi.si_addr : 0; thiscontext = &context1; - context_copy = context1; } int this_errno = saved_errno;
