From: Ulrich Drepper Date: Thu, 18 Dec 2003 03:58:26 +0000 (+0000) Subject: (fesetexceptflag): Set enable bits not raised exception bits. X-Git-Tag: glibc-2.16-ports-merge^2~1249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1f024c3e11470a425cd6f8072c2b74a93b3e69d;p=platform%2Fupstream%2Fglibc.git (fesetexceptflag): Set enable bits not raised exception bits. --- diff --git a/sysdeps/hppa/fpu/fsetexcptflg.c b/sysdeps/hppa/fpu/fsetexcptflg.c index 343ddad..af35f5a 100644 --- a/sysdeps/hppa/fpu/fsetexcptflg.c +++ b/sysdeps/hppa/fpu/fsetexcptflg.c @@ -29,8 +29,7 @@ fesetexceptflag (const fexcept_t *flagp, int excepts) /* Get the current status word. */ __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - /* Install the new exception flags bits. */ - sw[0] &= ~(excepts & (FE_ALL_EXCEPT >> 27)); + /* Install new enable trap bits */ sw[0] |= (*flagp & excepts & FE_ALL_EXCEPT) << 27; /* Store the new status word. */