From: Ulrich Drepper Date: Wed, 25 Apr 2001 18:27:55 +0000 (+0000) Subject: Clear the exception flags, not the enable flags. X-Git-Tag: glibc-2.16-ports-before-merge~1895 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aad4bb3a11398b8c9f579d1eb8a2aa9dbb8cfcea;p=thirdparty%2Fglibc.git Clear the exception flags, not the enable flags. --- diff --git a/sysdeps/hppa/fpu/fclrexcpt.c b/sysdeps/hppa/fpu/fclrexcpt.c index 4c640273109..e8049e6b449 100644 --- a/sysdeps/hppa/fpu/fclrexcpt.c +++ b/sysdeps/hppa/fpu/fclrexcpt.c @@ -29,7 +29,7 @@ feclearexcept (int excepts) __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); /* Clear all the relevant bits. */ - sw[0] &= ~(excepts & FE_ALL_EXCEPT); + sw[0] &= ~(excepts & FE_ALL_EXCEPT) << 27; __asm__ ("fldd 0(%0),%%fr0" : : "r" (sw)); /* Success. */