Page MenuHomePhabricator

[AArch64] Add __builtin_sponentry, for calling setjmp in MinGW

Authored by mstorsjo on May 6 2019, 6:14 AM.



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.)

Diff Detail

rC Clang

Event Timeline

mstorsjo created this revision.May 6 2019, 6:14 AM
rnk accepted this revision.May 6 2019, 10:52 AM


This revision is now accepted and ready to land.May 6 2019, 10:52 AM
mgrang accepted this revision.May 6 2019, 12:02 PM
This revision was automatically updated to reflect the committed changes.