This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2006 09:40:23 -0000
- Subject: [Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)
- References: <bug-28145-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from jason at gcc dot gnu dot org 2006-07-31 09:40 -------
Created an attachment (id=11979)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11979&action=view)
NPTL patch to allow discarding cancellation exception
And here's a completely untested patch to NPTL to implement the "sticky cancel"
semantics I've talked about; discarding the forced unwind exception causes the
exiting bit to be unset, so that the next cancellation point starts unwinding
again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28145