I was trying to capture floating points exceptions on the Intel iMac - I am not sure what options to use, but the gfortran crashes on the iMac and on Linux with these options on this program -
[pactech01:~/sage/sage20060707] dir% gfortran -c -O2 -mfpmath=sse -msse -msse2 -ffpe-trap=invalid,zero,overflow -ftrapping-math -ftrapv -fmath-errno module_utilities2.f90 gfortran: Internal error: Illegal instruction (program f951) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [pactech01:~/sage/sage20060707] dir% cat module_utilities2.f90 module utilities_module implicit none integer, parameter :: INT4 = SELECTED_INT_KIND(6) integer, parameter :: INT8 = SELECTED_INT_KIND(16) integer, parameter :: REAL4 = SELECTED_REAL_KIND(6) integer, parameter :: REAL8 = SELECTED_REAL_KIND(12) save private ! ============================================================================== contains ! ------------------------------------------------------------------------------ subroutine test_check_sums integer, parameter :: SIZE = 100000 integer :: array_i4(SIZE) integer(INT8) :: array_i8(SIZE) real(REAL8) :: array_r8(SIZE) real(REAL4) :: array_r4(SIZE) integer :: n do n = 1,SIZE array_i4(n) = int(-3*n, INT4) array_i8(n) = int(-3*n, INT8) array_r4(n) = real(-3*n, REAL4) array_r8(n) = real(-3*n, REAL8) enddo ! n end subroutine test_check_sums ! ------------------------------------------------------------------------------ end module utilities_module ! ============================================================================== [pactech01:~/sage/sage20060707] dir% gfortran --v Using built-in specs. Target: i386-apple-darwin8.6.1 Configured with: ../gcc/configure --prefix=/usr/local/gfortran --enable-languages=c,f95 Thread model: posix gcc version 4.2.0 20060522 (experimental) [pactech01:~/sage/sage20060707] dir% -- Summary: gfortran: Internal error: Illegal instruction Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dir at lanl dot gov http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28411