5.7.12.5 Exceptions option

The -fexceptions option generates extra code needed to propagate exceptions. This option might need to be specified when compiling C code that needs to inter-operate properly with exception handlers written in C++.

The -fno-exceptions form of this option disables exception handling. This is the default action if no option is specified.

Ensure that the same form of this option is specified at compile time for all modules and at link time. When used additionally at link time, the option allows the linker to select a variant of the libraries that are built with C++ exceptions disabled, reducing code size.