[clang] [llvm] Delegate __builtin_setjmp FP save to backend on windows CFI targets (PR #186843)

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 19 10:05:36 PDT 2026


uweigand wrote:

I like the idea in general, but I'm a bit confused about why we now have two separate intrinsics:
- it seems odd to have to pair `setjmp` with `eh_sjlj_longjmp`
- nobody is using `eh_sjlj_setjmp` any more, so what's the point of keeping all the related code

Why can't we just modify the definition of `eh_sjlj_setjmp` ?   Even if some old front-end are still using it expecting the old semantics, the new semantics is compatible (it would just be little less efficient).

Either way, the documentation needs to be updated to explain what the intrinsics do and how they should be used.

https://github.com/llvm/llvm-project/pull/186843


More information about the cfe-commits mailing list