[C++ PATCH] newabi runtime
Jason Merrill
jason@cygnus.com
Thu Apr 6 13:25:00 GMT 2000
>>>>> Mark Mitchell <mark@codesourcery.com> writes:
Jason> This seems like a job for uncaught_exception.
> I'm not sure quite what Jason means, so I'll make something up.
> It is true that `uncaught_exception' has to return true during the
> destruction of the remaining elements of the array. I'm not sure if
> the ABI needs to specify how that is accomplished; I don't think so.
> (We're not going to allow linking part of one vendors standard library
> with part of anothers, are we?) However, that implies that
> `uncaught_exception' cannot be inlined.
> Nathan, please fix the destructor issue Jason mentioned, and see if
> you make uncaught_exception return true at the right time. I bet that
> clearing `CP_EH_INFO->caught' while in the `catch' clause will do the
> trick, but you should confirm that.
I also meant that we should check uncaught_exception as we enter vec_dtor
so we know whether or not one exception is OK.
We should also clear ->caught in the cleanup clause of vec_ctor, which
could be replaced with a call to vec_dtor.
Jason
More information about the Gcc-patches
mailing list