On 2013-01-16 14:53:42 +0100, Richard Biener wrote: > 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).
By "enable FP exceptions", I think you mean set a trap for these exceptions (documents often mix "exception" and "trap"). But there doesn't seem to be standard support for traps in C. The Glibc provides feenableexcept, fedisableexcept and fegetexcept functions for that. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)