Commit 38f92567 by Richard Henderson Committed by Richard Henderson

re PR libstdc++/20091 (18_support/14026.cc execution test fails)

        PR libstdc++/20091
        * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
        decrement of uncaughtExceptions for rethrow.

From-SVN: r95419
parent b671e5a4
2005-02-22 Richard Henderson <rth@redhat.com>
PR libstdc++/20091
* libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
decrement of uncaughtExceptions for rethrow.
2005-02-22 Paolo Carlini <pcarlini@suse.de>
* include/tr1/functional: Fix License to GPL with exception.
......
......@@ -70,15 +70,14 @@ __cxxabiv1::__cxa_begin_catch (void *exc_obj_in) throw()
}
int count = header->handlerCount;
// Count is less than zero if this exception was rethrown from an
// immediately enclosing region.
if (count < 0)
// This exception was rethrown from an immediately enclosing region.
count = -count + 1;
else
{
count += 1;
globals->uncaughtExceptions -= 1;
}
count += 1;
header->handlerCount = count;
globals->uncaughtExceptions -= 1;
if (header != prev)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment