This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [basic-improvements] try/finally support for c/c++ - more tests
- From: Mike Stump <mrs at apple dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, Mark Mitchell <mark at codesourcery dot com>, Geoff Keating <geoffk at geoffk dot org>, "zack at codesourcery dot com" <zack at codesourcery dot com>, "jakub at redhat dot com" <jakub at redhat dot com>, "aldyh at redhat dot com" <aldyh at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "jason at redhat dot com" <jason at redhat dot com>
- Date: Fri, 8 Nov 2002 11:25:16 -0800
- Subject: Re: [basic-improvements] try/finally support for c/c++ - more tests
On Friday, November 8, 2002, at 04:26 AM, Richard Henderson wrote:
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.
I think this case can be handled by checking out the frame address, if
any, and use the one that is closest. In __builtin_setjmp, grabbing
this value is easy enough. With dwarf, its a bit harder. This would
also enable one to intermix sjlj EH and dwarf EH seemlessly.