HomePhabricator

[AArch64] Add __builtin_sponentry, for calling setjmp in MinGW

Authored by mstorsjo on May 6 2019, 2:19 PM.

Description

[AArch64] Add __builtin_sponentry, for calling setjmp in MinGW

In MinGW, setjmp isn't expanded as a builtin in the compiler (like it
is for MSVC), but manually hooked up as calls to the right underlying
functions in headers. Using the actual CRT's real setjmp/longjmp
functions requires this intrinsic. (Currently this is worked around by
using MinGW specific reimplementations of setjmp/longjmp on aarch64.)

Differential Revision: https://reviews.llvm.org/D61592

llvm-svn: 360082

Details

Committed
sidorovdMay 24 2019, 5:35 AM
Differential Revision
D61592: [AArch64] Add __builtin_sponentry, for calling setjmp in MinGW
Parents
rGd04539af2b7a: [MinGW] Use SEH by default on AArch64
Branches
Unknown
Tags
Unknown