HomeFreeBSD

libc: Fix longjmp/_longjmp(buf, 0) for MIPS

Description

libc: Fix longjmp/_longjmp(buf, 0) for MIPS

Like AArch64 and RISC-V in the past, MIPS fails to handle this special
case, and will cause the corresponding setjmp/_setjmp to return 0 rather
than 1. Fix this so the newly-added regression tests pass.

This is a direct commit to stable/13 as mips no longer exists in main.

Reviewed by: arichardson, jhb
Differential Revision: https://reviews.freebsd.org/D29363

Details

Provenance
jrtc27Authored on Jan 30 2023, 11:55 PM
Reviewer
arichardson
Differential Revision
D29363: libc: Fix longjmp/_longjmp(buf, 0) for AArch64, MIPS and RISC-V
Parents
rGcc58b7123be2: libc: Fix longjmp/_longjmp(buf, 0) for AArch64 and RISC-V
Branches
Unknown
Tags
Unknown