On Feb 26, 2009, at 12:57 AM, Duncan Sands wrote:> So LLVM turns setjmp/longjmp > into a bunch of invokes and unwinds, in order to generate correct code > while not having to teach all the optimizers about setjmp/longjmp. > Setjmp/longjmp eh is something different.Or virtually identical. Bout the only difference is the number of registers saved and the order of those registers.
> Or virtually identical. Bout the only difference is the number of > registers saved and the order of those registers.What needs to be done to get g++ to use sj/lj style exception handling? Thanks, Duncan.
On Feb 26, 2009, at 2:28 AM, Duncan Sands wrote:>> Or virtually identical. Bout the only difference is the number of >> registers saved and the order of those registers. > > What needs to be done to get g++ to use sj/lj style exception > handling?Many different ways, the easiest, most experimental way would be: --enable-sjlj-exceptions arrange to use setjmp/longjmp exception handling Somehow, I suspect you have additional questions.