not-a-number's
Andreas Schwab
schwab@suse.de
Wed Jan 16 14:39:00 GMT 2013
Richard Biener <richard.guenther@gmail.com> writes:
> You can enable FP exceptions via fpsetexceptflag and friends (it's disabled
> in the FPU by default) and if you then make sure to compile with
> -fsignalling-nans (that's not the default) you will get the desired behavior
> (program termination via an exception).
That will only work with SNaN, and only for input operands, since the
FPU will never generate SNaN on its own.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gcc
mailing list