FPE handling

Ricardo Lima rlima@fe.up.pt
Fri Jan 20 17:02:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


(I am not sure that this is the proper place to put this msg, but...)

Hi,

I am porting some fortran code from a DEC Alpha workstation (Digital
Fortran) where I use to use the signal function to handle FPE, to a
linux running machine with g77.
In this last machine I am trying to use the signal function to handle
floating exceptions with a subroutine, but what happens is that the
program is able to detect the exception, but then it keeps in an
infinite loop on that subroutine.

So, what am I doing wrong? My hint is that I am not reseting the FPU
state, and because of the FPE the routine is being continued called.
Can you help me about this?

How do you handle FPE?

Thanks in advance

- --
Ricardo Lima

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD0Re4MTLx7rKOFwYRAk+LAJ94Dtk+21jldfViQO0mrcFlXEF5wQCeItTK
7CGOjUdPswIHnJdYOqqGcbY=
=+LHH
-----END PGP SIGNATURE-----



More information about the Fortran mailing list