aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-04-17 22:51:43 +0000
committerUlrich Drepper <drepper@redhat.com>2004-04-17 22:51:43 +0000
commit87ffc6ec7972f7abe7174199addf2911c876d24a (patch)
treee9daebd55c496cfc225f768e90c7c72c307ffa14 /sysdeps
parent57f4291c9d3ed7892d0aaaf153540fc5b290ace8 (diff)
downloadglibc-87ffc6ec7972f7abe7174199addf2911c876d24a.tar.xz
glibc-87ffc6ec7972f7abe7174199addf2911c876d24a.zip
(feupdateenv): Use only sw[0] and call feraiseexcept.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/hppa/fpu/feupdateenv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/hppa/fpu/feupdateenv.c b/sysdeps/hppa/fpu/feupdateenv.c
index 8980dfd69c..7d50282e05 100644
--- a/sysdeps/hppa/fpu/feupdateenv.c
+++ b/sysdeps/hppa/fpu/feupdateenv.c
@@ -27,11 +27,10 @@ feupdateenv (const fenv_t *envp)
/* Get the current exception status. */
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
- sw[0] &= FE_ALL_EXCEPT;
- envp->__status_word = envp->__status_word | sw[0];
-
/* Install new environment. */
fesetenv (envp);
+ /* Raise the saved exceptions */
+ feraiseexcept(sw[0] & FE_ALL_EXCEPT);
/* Success. */
return 0;