From 63e5f2006d84d41892dec4d0c1b53c1999ea1faa Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 Sep 2002 14:18:43 +0000 Subject: * exceptions.cc (unused_sig_wrapper): Still need additional level of indirection when setting errno. --- winsup/cygwin/exceptions.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index fa8cd634b..e15803a52 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1205,7 +1205,8 @@ _sigreturn: \n\ 1: popl %%eax # saved errno \n\ testl %%eax,%%eax # Is it < 0 \n\ jl 2f # yup. ignore it \n\ - movl %%eax,%1 \n\ + movl %1,%%ebx \n\ + movl %%eax,(%%ebx) \n\ 2: popl %%eax \n\ popl %%ebx \n\ popl %%ecx \n\ @@ -1245,7 +1246,7 @@ _sigdelayed0: \n\ popl %%eax \n\ jmp *%%eax \n\ __no_sig_end: \n\ -" : "=m" (sigsave.sig): "X" (errno), +" : "=m" (sigsave.sig): "X" ((char *) &_impure_ptr->_errno), "g" (sigsave.retaddr), "g" (sigsave.oldmask), "g" (sigsave.sig), "g" (sigsave.func), "g" (sigsave.saved_errno), "g" (sigsave.newmask) ); -- cgit v1.2.3