I am compiling a fortran program with gfortran (Debian 4.4.5-8) and
-fpe-trap=denormal
The compilation went fine but when I am running the executable, I have:
Fortran runtime warning: IEEE 'denormal number' exception not supported.
I tried both on 32bit and 64bit OS. What are the prerequisite for this?
Thanks,
Pascal
Use a different operating system. :-)
The source code for libgfortran includes this code
/* glibc does never have a FE_DENORMAL. */
if (options.fpe & GFC_FPE_DENORMAL)
#ifdef FE_DENORMAL
feenableexcept (FE_DENORMAL);
#else
st_printf ("Fortran runtime warning: IEEE 'denormal number' "
"exception not supported.\n");
#endif
--
steve
>>
>
> Use a different operating system. :-)
>
> The source code for libgfortran includes this code
>
> /* glibc does never have a FE_DENORMAL. */
> if (options.fpe& GFC_FPE_DENORMAL)
> #ifdef FE_DENORMAL
> feenableexcept (FE_DENORMAL);
> #else
> st_printf ("Fortran runtime warning: IEEE 'denormal number' "
> "exception not supported.\n");
> #endif
>
Too bad :(
Thanks,
Pascal
Well, I have not really looked at the code in detail, but presumably
with the patch in the bug report, one can get the desired result:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48977
Tobias