On Tue, Jan 18, 2011 at 06:08:37PM -0500, Frank Ch. Eigler wrote:
> -fexception allows a C library to participate in C++ exception
> handling.  It does not cost anything except extra data tables in the
> ELF file.  Its presence matters in cases where a C library is used by
> a C++ program, for example where the library may make a callback into
> the C++ program, and that callback might throw an exception.  With
> -fexception, that exception will be propagated properly through the C
> library, to the outermost application.  Without it, exceptions thrown
> from a callback may abort the program, even if the overall application
> wanted to catch it.

-fexceptions is also desirable for POSIX thread cancellation.

        Jakub
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to