Can I limit where -ffpe-trap=zero is applied?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi List,

I'm compiling a program with, among other things, 

-ffpe-trap=invalid,zero,overflow

In order to catch divide-by-zero issues. However, this causes it to crash in a much lower level library than I want to worry about at this point.

It's crashing due to a divide-by-zero error in the Blitz C++ array library. That library is several dependencies deep, and was compiled with

CFLAGS="-fPIC -DNDEBUG" FCFLAGS="-fPIC -DNDEBUG" CPPFLAGS="-fPIC -DNDEBUG" cmake ..

I hoped the '-DNDEBUG' would allow Blitz to ignore the fpe-trap=zero but it does not seem to.

Thanks,

  -k.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux