Can I make gcc tell me when a calculation results in NaN or inf at runtime?
- by toft
Is there a way to tell gcc to throw a SIGFPE or something similar in response to a calculation that results in NaN or (-)inf at runtime, like it would for a divide-by-zero?
I've tried the -fsignaling-nans flag, which doesn't seem to help.