[basic-improvements] try/finally support for c/c++

Richard Henderson rth@redhat.com
Thu Nov 7 09:58:00 GMT 2002


On Thu, Nov 07, 2002 at 12:48:32PM +1100, Fergus Henderson wrote:
> Undefined behaviour is pretty drastic.  Would it be sufficient to just
> make it implementation-defined whether or not longjmp() invokes cleanups
> (i.e. destructors and finally blocks)?

If you're using sjlj exceptions, you'll actually confuse the
unwinder by using longjmp.  Something that might be fixable,
but requires more processor-specific code.


r~



More information about the Gcc-patches mailing list