diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-11-18 00:09:09 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2005-11-18 00:09:09 +0000 |
commit | eaa9c6bdb4bb37a140f320bd539f7f8e41c60ab2 (patch) | |
tree | 91e4d63082c533dd97e49be6f9e7745325ba98e3 /libgfortran/config | |
parent | 9976dec82943a571a0bacb1ee192b87d6d055168 (diff) | |
download | gcc-eaa9c6bdb4bb37a140f320bd539f7f8e41c60ab2.zip gcc-eaa9c6bdb4bb37a140f320bd539f7f8e41c60ab2.tar.gz gcc-eaa9c6bdb4bb37a140f320bd539f7f8e41c60ab2.tar.bz2 |
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
Diffstat (limited to 'libgfortran/config')
-rw-r--r-- | libgfortran/config/fpu-glibc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h index 389f905..8b0801a 100644 --- a/libgfortran/config/fpu-glibc.h +++ b/libgfortran/config/fpu-glibc.h @@ -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 |