]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
SH: feraiseexcept: Restore fpscr flag fields.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Sun, 27 May 2012 23:02:34 +0000 (01:02 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 27 May 2012 23:02:34 +0000 (01:02 +0200)
ChangeLog
sysdeps/sh/sh4/fpu/fraiseexcpt.c

index 65de57e57bb74cfd70ed1e18d1759b5cfb74d981..3d1bc8f8924cfa2959aaa8cbc6f24bfddc95fcd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
+       fields.
+
 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
 
        * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
index a555b1088526af988ea1433fe75cb0fd9963136c..729e8bf3ecf70bb5ab135c3849b561f99097b528 100644 (file)
@@ -60,6 +60,14 @@ feraiseexcept (int excepts)
     __asm__ __volatile__ ("fmul %1, %0" : "+d" (d) : "d" (x));
   }
 
+  {
+    /* Restore flag fields.  */
+    fpu_control_t cw;
+    _FPU_GETCW (cw);
+    cw |= (excepts & FE_ALL_EXCEPT);
+    _FPU_SETCW (cw);
+  }
+
   return 0;
 }
 libm_hidden_def (feraiseexcept)