From: Ulrich Drepper Date: Sat, 17 Apr 2004 22:51:43 +0000 (+0000) Subject: (feupdateenv): Use only sw[0] and call feraiseexcept. X-Git-Tag: upstream/2.30~10627^2~1190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ffc6ec7972f7abe7174199addf2911c876d24a;p=external%2Fglibc.git (feupdateenv): Use only sw[0] and call feraiseexcept. --- diff --git a/sysdeps/hppa/fpu/feupdateenv.c b/sysdeps/hppa/fpu/feupdateenv.c index 8980dfd..7d50282 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;