[libgfortran] FPE support for ppc-darwin

FX Coudert fxcoudert@gmail.com
Sat Apr 1 22:09:00 GMT 2006


Attached patch should add support for 
-ffpe-trap={zero,denormal,precision,underflow,overflow} on ppc-darwin. 
Unfortunately, I don't have access to such computer any more, so I'm 
looking for someone to test this patch. Once compiled, you can test it 
with, eg:

$ cat a.f
       real*8 x
       x = -1
       print *, sqrt(x)
       end
$ gfortran a.f && ./a.out
                      NaN
$ gfortran a.f -ffpe-trap=invalid && ./a.out
Floating point exception


Thanks!
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpu-ppcdarwin.diff
Type: text/x-patch
Size: 3461 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060401/b9eadb8f/attachment.bin>


More information about the Fortran mailing list