On Feb 17, 2009, at 12:50 AM, Duncan Sands wrote:> I'm not sure anyone here knows how gcc handles sj/lj style exceptions,Or, reworded slightly, some people here wrote it. :-)
> > I'm not sure anyone here knows how gcc handles sj/lj style exceptions, > > Or, reworded slightly, some people here wrote it. :-)Excellent! To handle dwarf eh, LLVM has an intrinsic to get hold of an exception object (eh.exception) and an intrinsic for matching the exception against a list of typeinfo objects (eh.selector). These get morphed into calls to the gcc unwinder lib by the code generator. Can sj/lj follow a similar scheme? Thanks, Duncan.
On Feb 17, 2009, at 8:59 AM, Duncan Sands wrote:> Excellent! To handle dwarf eh, LLVM has an intrinsic to get hold of > an exception object (eh.exception) and an intrinsic for matching the > exception against a list of typeinfo objects (eh.selector). These > get morphed into calls to the gcc unwinder lib by the code generator. > Can sj/lj follow a similar scheme?Don't see why not, though, these aren't sufficient.