Need for __uncatch_exception

Christophe de Dinechin ddd at cup.hp.com
Fri Jul 21 17:03:02 UTC 2000


Mark Mitchell wrote:
> 
> >>>>> "Christophe" == Christophe de Dinechin <ddd at cup.hp.com> writes:
> 
>     Christophe> I proposed we close C-17 on the basis that
>     Christophe> __uncatch_exception is an "internal" routine to lib++
>     Christophe> or whatever the support library is, and is never used
>     Christophe> in compiler-generated code.
> 
> Note that this is not at all what is described in the
> exception-handling document.  Then again that document is not at all
> finished.  It doesn't say much about the Level 2 or Level 3
> exception-handling stuff.  I don't think there's presently enough
> there to implement.

Which document are you talking about? The page Jim has written, or the HP
runtime document. I believe you have to read both to get the complete picture.

> (That's unsurprising
> given that the spec doesn't look finished.)

To me, the spec is finished and was actually implemented at HP. We used
different names at the time, and I haven't finished converting it to the new
names, but short of that. Also, I sent out a while ago the source code for the
C++ specific part.

In our implementation, there is no need for __uncatch_exception in compiler
generated code. There is a need for a special __rethrow entry point (sorry,
__cxa_rethrow). Rather than using __uncatch_exception, we set a special bit on
the exception, but the result should be similar.


Regards
Christophe




More information about the cxx-abi-dev mailing list