From: Ulrich Drepper Date: Thu, 18 Dec 2003 03:57:50 +0000 (+0000) Subject: (feupdateenv): Read raised exception bits, OR with envp, pass to fesetenv. X-Git-Tag: glibc-2.16-ports-before-merge~1251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bff455e8a5d59aba93e5c5af38dac610f572077;p=thirdparty%2Fglibc.git (feupdateenv): Read raised exception bits, OR with envp, pass to fesetenv. --- diff --git a/sysdeps/hppa/fpu/feupdateenv.c b/sysdeps/hppa/fpu/feupdateenv.c index c61b7b298ad..8980dfd69ca 100644 --- a/sysdeps/hppa/fpu/feupdateenv.c +++ b/sysdeps/hppa/fpu/feupdateenv.c @@ -27,14 +27,12 @@ feupdateenv (const fenv_t *envp) /* Get the current exception status. */ __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= (FE_ALL_EXCEPT << 27); - + sw[0] &= FE_ALL_EXCEPT; + envp->__status_word = envp->__status_word | sw[0]; + /* Install new environment. */ fesetenv (envp); - /* Raise the saved exception. */ - feraiseexcept (sw[0] >> 27); - /* Success. */ return 0; }