This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Trap floating-point exceptions?


Under Linux, gcc/g++-compiled code happily continues running after
producing NAN and INF. Often it is time-consuming to backtrack to the
actual source of the numerical problems. In addition, such problems may
go undetected for some time, which can cause all kinds of confusion.

Other
platforms stop after a floating-point exception (e.g. HP's Tru64 Unix
with cc/cxx), or support customizations of FPE behavior via environment
variables (e.g. SGI's old IRIX). Is something like this possible with
gcc/g++ under Linux?

Thanks!

Ralf





       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]