fpu-glibc.h (set_fpu): Only call fedisableexcept for nonzero FE_ALL_EXCEPT.

* config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
	nonzero FE_ALL_EXCEPT.

From-SVN: r107145
This commit is contained in:
Hans-Peter Nilsson 2005-11-18 00:09:09 +00:00 committed by Hans-Peter Nilsson
parent 9976dec829
commit eaa9c6bdb4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-18 Hans-Peter Nilsson <hp@axis.com>
* config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
nonzero FE_ALL_EXCEPT.
2005-11-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/24892

View File

@ -39,7 +39,8 @@ Boston, MA 02110-1301, USA. */
void set_fpu (void)
{
fedisableexcept (FE_ALL_EXCEPT);
if (FE_ALL_EXCEPT != 0)
fedisableexcept (FE_ALL_EXCEPT);
if (options.fpe & GFC_FPE_INVALID)
#ifdef FE_INVALID