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

Richard Henderson rth@redhat.com
Fri Nov 8 04:27:00 GMT 2002


On Fri, Nov 08, 2002 at 04:07:09AM -0200, Alexandre Oliva wrote:
> I fail to see how longjmp_unwind could possibly be implemented without
> EH frame information for all frames, C ones included.

The idea I has was that it unwound frames until (1) we arrive at
the destination frame or (2) we don't find any more EH information,
at which point it falls back to just longjmp.

This does require that all EH-bearing frames appear at the bottom
of the call chain, but I think it does handle the common case of
an all-C++ or all-C pthreads application.

It's only people who mix C and C++ that have to be more careful
about using -fexceptions with their C code.


r~



More information about the Gcc-patches mailing list