[patch-rfc] N2179: Exception Propagation in C++

Sebastian Redl sebastian.redl@getdesigned.at
Tue Aug 12 20:06:00 GMT 2008


Paolo Carlini wrote:
> In the meanwhile, I checked with FSF and the work is cleared to be accepted, given the status of the paperwork. Thus, please provide a ChangeLog entry, regtest again the patch, submit it in the final form... Thanks!
>   
Great!

Here's the changlog entry:

        Add exception propagation support as per N2179.
        * libsupc++/exception_ptr.h: Implement exception propagation.
        * libsupc++/eh_ptr.cc: Likewise.
        * libsupc++/unwind-cxx.h: Likewise.
        * libsupc++/eh_alloc.cc: Likewise
        * libsupc++/eh_arm.cc: Handle dependent exceptions.
        * libsupc++/eh_call.cc: Likewise.
        * libsupc++/eh_personality.cc: Likewise.
        * libsupc++/eh_type.cc: Likewise.
        * libsupc++/eh_throw.cc: Handle reference counting.
        * libsupc++/exception: Conditionally include exception_ptr.h.
        * libsupc++/Makefile.am: Register new files.
        * libsupc++/Makefile.in: Regenerate.
        * config/abi/pre/gnu.ver: Add new symbols.
        * testsuite/18_support/exception_ptr/current_exception.cc: Test the
        core functionality of current_exception().
        * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
        core functionality of rethrow_exception().
        * testsuite/18_support/exception_ptr/lifespan.cc: Test the life 
span of
        exception objects during exception propagation.


Patch is based on Monday's trunk and applies cleanly to one pulled 
Tuesday around 1:00 PM GMT. Tested on x86-64 and i686; no regressions 
compared to unmodified trunk.

Next project: nested exceptions as per N2559. That one should be easy.

Sebastian

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: n2179.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080812/f68abd29/attachment.ksh>


More information about the Gcc-patches mailing list