diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-05-19 13:03:56 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-05-19 13:03:56 +0200 |
commit | 181c13586f12a9a15ed446b1a9594a5a8831d8d1 (patch) | |
tree | 52c4786d2d0448e9cbe9f4d25fadc7e7cee52924 /sysdeps/sh/sh4 | |
parent | 9100611515956d730bac91fe23976978b0ab70a6 (diff) | |
parent | 4828935d386854c19275dbe39e07dbd4bd539d1c (diff) |
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'sysdeps/sh/sh4')
-rw-r--r-- | sysdeps/sh/sh4/fpu/feholdexcpt.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sysdeps/sh/sh4/fpu/feholdexcpt.c b/sysdeps/sh/sh4/fpu/feholdexcpt.c index 7aac5a0d39..87d6420891 100644 --- a/sysdeps/sh/sh4/fpu/feholdexcpt.c +++ b/sysdeps/sh/sh4/fpu/feholdexcpt.c @@ -1,5 +1,6 @@ /* Store current floating-point environment and clear exceptions. - Copyright (C) 1997, 1998, 1999, 2000, 2005 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2005, 2010 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -29,10 +30,15 @@ feholdexcept (fenv_t *envp) _FPU_GETCW (temp); envp->__fpscr = temp; - /* Now set all exceptions to non-stop. */ + /* Clear the status flags. */ temp &= ~FE_ALL_EXCEPT; + + /* Now set all exceptions to non-stop. */ + temp &= ~(FE_ALL_EXCEPT << 5); + _FPU_SETCW (temp); - return 1; + /* Success. */ + return 0; } libm_hidden_def (feholdexcept) |