bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PA: fix fpu exception handling


From: Matthew Wilcox
Subject: PA: fix fpu exception handling
Date: Wed, 25 Apr 2001 12:09:07 -0600

2001-04-12  Paul Bame <address@hidden>

        * sysdeps/hppa/fpu/fclrexcpt.c: Clear the exception flags,
        not the enable flags.

diff -urNx CVS glibc-2.2.1/sysdeps/hppa/fpu/fclrexcpt.c 
glibc/sysdeps/hppa/fpu/fclrexcpt.c
--- glibc-2.2.1/sysdeps/hppa/fpu/fclrexcpt.c    Thu Nov 16 13:00:28 2000
+++ glibc/sysdeps/hppa/fpu/fclrexcpt.c  Tue Apr 24 17:48:05 2001
@@ -29,7 +29,7 @@
   __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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]