gfortran45 IEEE exceptions are in the manual, but not supported?
Anton Shterenlikht
mexas@bristol.ac.uk
Fri Feb 25 09:13:00 GMT 2011
On Fri, Feb 25, 2011 at 09:01:15AM +0000, Anton Shterenlikht wrote:
> On Thu, Feb 24, 2011 at 05:01:11PM +0100, FX wrote:
> > > ia64 4.5:
> > > http://seis.bris.ac.uk/~mexas/ia64-portbld-freebsd9.0-libgfortran-4.5-config.log
> >
> > OK, so the library function is detected, but that result isn't used as it should. I think I botched the configure test, so the bug was always there (I was the one who wrote this initially, so I apologise!).
> > Can you try the attached patch? You don't need to rebuild the whole compiler, just libgfortran.
> >
>
> This helps:
>
> TZAV> cat ieee-except.f90
> program z
> implicit none
>
> real(kind=4) :: x,y
>
> x=1.0e-30
>
> y=1.0/x/x
> write(*,*)y
>
> y=x*x
> write(*,*)y
>
> end program z
>
> TZAV> gfortran45 -ffpe-trap=underflow,overflow,zero,denormal,invalid,precision ieee-except.f90
>
> TZAV> ./a.out
> Fortran runtime warning: IEEE 'denormal number' exception not supported.
> Floating exception (core dumped)
> TZAV>
>
>
> The underflow triggered exception.
No, that was overflow..
By the way, are modules ieee_arithmetic,
ieee_features, ieee_exceptions not
supported yet?
(http://gcc.gnu.org/wiki/Fortran2003
Unimplemented - IEEE Exceptions)
Or is it just me with my ia64 FreeBSD?
Thank you
--
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