]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/10606 (uncaught_exception() returns false too early)
authorRichard Henderson <rth@redhat.com>
Sat, 19 Feb 2005 02:35:25 +0000 (18:35 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 19 Feb 2005 02:35:25 +0000 (18:35 -0800)
commit396090773cfa29f9a5973a39a61dfc8d001b9633
tree020d4a99713b8ea013495d485fc2c96d2a5d328e
parent5ff489f15bb5916615fbac14fe7fc843d32a6054
re PR libstdc++/10606 (uncaught_exception() returns false too early)

        PR libstdc++/10606
gcc/cp/
        * except.c (do_get_exception_ptr): New.
        (expand_start_catch_block): Use it.
libstdc++/
        * config/linker-map.gnu (CXXABI_1.3.1): Add __cxa_get_exception_ptr.
        * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Increment
        uncaughtExceptions here instead of ...
        * libsupc++/eh_throw.cc (__cxa_throw) ... here.
        (__cxa_rethrow): Increment uncaughtExceptions here instead of ...
        * libsupc++/eh_catch.cc (__cxa_end_catch): ... here.
        (__cxa_get_exception_ptr): New.
        * libsupc++/unwind-cxx.h (__cxa_get_exception_ptr): Declare.

From-SVN: r95262
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/g++.dg/eh/uncaught1.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/config/linker-map.gnu
libstdc++-v3/libsupc++/eh_alloc.cc
libstdc++-v3/libsupc++/eh_catch.cc
libstdc++-v3/libsupc++/eh_throw.cc
libstdc++-v3/libsupc++/unwind-cxx.h