I am trying to compile and run some legacy fortran code on a linux box. At the end of the run, it says:
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG IEEE_DIVIDE_BY_ZERO
I understand that these are warning (see here). My question is: Is there an easy way to get all code line numbers where these warnings originated from? If I used the '-ffpe-trap' option to change these warnings to SIGFPE signals, then I just get the first instance (and the program exits).
I would like something like a list of instances (lines in the code):
code_file1.f:65 (divide by zero)
code_file2.f:92 (invalid flag)
... (etc)