This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Nov  7, 2002, Mark Mitchell <mark@codesourcery.com> wrote:

> I would prefer longjmp_unwind; that's something we're supposed to
> have anyhow, and it would be very useful in making existing C
> libraries play more nicely with C++, so implementing that would be
> a definite win.

I fail to see how longjmp_unwind could possibly be implemented without
EH frame information for all frames, C ones included.  I mean, if all
you have is a chain of jmp_bufs that link together some call frames,
but you can't get from them to other call frames that have actual
cleanups, I don't see how longjmp_unwind could get to the cleanups in
order to run them.

But then, this thread was the first time I heard of longjmp_unwind, so
perhaps I'm missing some magic about it.  Or it's just that the need
for EH call frames in C for it to work is so obvious that nobody
brought it up, and it was stupid of me to even consider it might not
be the case :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]