Mikhail R. Gadelha 9b4e8b7b0a [libc] Fix longjmp's fake return in x86_64
This implements the fake return after a successful longjmp(), as
described in the linux man page:

Following  a  successful  longjmp(), execution continues as if setjmp()
had returned for a second time.  This  "fake"  return  can  be  distin-
guished from a true setjmp() call because the "fake" return returns the
value provided in val.  If the programmer mistakenly passes the value 0
in val, the "fake" return will instead return 1.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D146981
2023-03-27 19:41:54 -03:00
..
2023-01-11 05:38:33 +00:00
2023-02-22 10:40:38 -08:00
2023-03-16 06:16:14 -03:00