Lahey/GNU Fortran

-[n]trap [d][i][o][u]

Trap NDP Exceptions

Compile only. Default: -ntrap

GFortran options: -ffpe-trap=zero, ffpe-trap=invalid, ffpe-trap=overflow, ffpe-trap=underflow

The -trap option specifies how each of four numeric data processor (NDP) exceptions will be handled at execution time of your program.

NDP Exceptions

NDP Exception Option Argument

Divide-by-Zero

d

Invalid Operation

i

Overflow

o

Underflow

u

Specify -trap with any combination of d, i, o, and u to instruct the NDP chip to generate an interrupt when it detects the specified exception(s) and generate an error message. At least one argument must be specified when the -trap option is used.