Removing -fexceptions from $RPM_OPT_FLAGS

Jakub Jelinek jakub at redhat.com
Tue Jan 18 23:14:52 UTC 2011


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


More information about the devel mailing list