[PATCH] Only use IR intrinsincs for __builtin_longjmp / __builtin_setjmp when the target supports them.
joerg at NetBSD.org
Fri Feb 20 11:39:32 PST 2015
Hi grosbach, t.p.northover, hans,
Ruby is currently crashing on ARM because SelectionDAG turns llvm.eh.sjlj.longjmp and llvm.eh.sjlj.setjmp into nonsense, if the target has no lowering for them. Handle this properly in the frontend by not using the IR intrinsics unless the platform is known to have a working implementation. As documented with the FIXME, the Darwin lowering does not qualify either, it is written strictly for use by EH.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6227 bytes
Desc: not available
More information about the cfe-commits