title: gfortran warn on floating point exception
body: <p>I'm using gfortran for some code.  For a while now, I've been compiling with </p>
  
  <pre><code>-ffpe-trap=zero,overflow,invalid
  </code></pre>
  
  <p>in an attempt to hunt down some bugs. This causes my program to cease execution immediately.  There are some cases where the FPE might be OK and so a flag like: </p>
  
  <pre><code>-ffpe-warn=zero,overflow,invalid
  </code></pre>
  
  <p>would be very useful. Does gfortran (or any other compiler) provide anything like this?  If not, are there any workarounds? My current thought is to create a C function to register a signal handler to write out the warning, although I have no idea how to go about doing that.</p>