Is there any way, short of putting an attribute on each function prototype, to let gcc know that C functions can never propagate exceptions, i.e. that all functions declared inside extern "C"
should be __attribute__((nothrow))
? Ideal would be a -f
style command line option.
You can always use -fno-exceptions
which will ensure that the c++ compiler does not generate exception propagation code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With