Set members in ENV[0].__jmpbuf[0], not ENV[0].

This commit is contained in:
Roland McGrath 1994-12-04 18:51:22 +00:00
parent fd339eecd8
commit 5b743d860e

View File

@ -25,11 +25,9 @@ int
__sigsetjmp (jmp_buf env, int savemask) __sigsetjmp (jmp_buf env, int savemask)
{ {
/* Save our caller's FP and PC. */ /* Save our caller's FP and PC. */
asm ("movl 12(fp), %0" : "=g" (env[0].__fp)); asm ("movl 12(fp), %0" : "=g" (env[0].__jmpbuf[0].__fp));
asm ("movl 16(fp), %0" : "=g" (env[0].__pc)); asm ("movl 16(fp), %0" : "=g" (env[0].__jmpbuf[0].__pc));
/* Save the signal mask if requested. */ /* Save the signal mask if requested. */
__sigjmp_save (env, savemask); return __sigjmp_save (env, savemask);
return 0;
} }