summaryrefslogtreecommitdiff
path: root/libgfortran/config
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-18 00:09:09 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-18 00:09:09 +0000
commitb5662169412d2b4ea5117c9a3fe817e28e57a3f5 (patch)
tree91e4d63082c533dd97e49be6f9e7745325ba98e3 /libgfortran/config
parent5f7adeee93a58be2190715f151658a8983422283 (diff)
downloadlinaro-gcc-b5662169412d2b4ea5117c9a3fe817e28e57a3f5.tar.gz
linaro-gcc-b5662169412d2b4ea5117c9a3fe817e28e57a3f5.tar.bz2
linaro-gcc-b5662169412d2b4ea5117c9a3fe817e28e57a3f5.zip
* config/fpu-glibc.h (set_fpu): Only call fedisableexcept for
nonzero FE_ALL_EXCEPT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/config')
-rw-r--r--libgfortran/config/fpu-glibc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h
index 389f9054a56..8b0801a96b6 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