gfortran45 IEEE exceptions are in the manual, but not supported?
Anton Shterenlikht
mexas@bristol.ac.uk
Fri Feb 25 14:40:00 GMT 2011
On Fri, Feb 25, 2011 at 10:16:57AM +0100, FX wrote:
>
> > And what about sparc64? Should a similar patch be used there as well?
>
> The same patch should work on all FreeBSD variants, please try it on sparc64 and tell me what happens. According to sys/sparc64/include/ieeefp.h, trap on denormal will on be enabled.
>
sparc64 with 4.5:
QOF> gfortran45 -ffpe-trap=invalid,zero,overflow,underflow,precision,denormal ieee-except.f90
QOF> ./a.out
Fortran runtime warning: IEEE 'denormal number' exception not supported.
__sparc_utrap: fatal floating point exception ieee 754
Floating exception (core dumped)
QOF>
Thanks
Anton
--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
More information about the Fortran
mailing list