This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Trap floating-point exceptions?
- From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Cc: rwgk at yahoo dot com
- Date: Sun, 16 Sep 2007 20:51:14 -0700 (PDT)
- Subject: 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