]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
SH: Do not re-write fpscr after reading it.
authorThomas Schwinge <thomas@codesourcery.com>
Sat, 9 Jun 2012 16:36:52 +0000 (18:36 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Sat, 9 Jun 2012 16:36:52 +0000 (18:36 +0200)
ChangeLog
sysdeps/sh/sh4/fpu/fegetenv.c
sysdeps/sh/sh4/fpu/fegetexcept.c
sysdeps/sh/sh4/fpu/fesetround.c
sysdeps/sh/sh4/fpu/fraiseexcpt.c
sysdeps/sh/sh4/fpu/ftestexcept.c

index 174fb4a6d594dde3b0c5facb05e6ccbc3c0a73b2..5a6747480f657f3b0fa2e00b6ea90a8d5f1ab5f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
+       reading it.
+       * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
+       * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
+
 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
index ca7de162852d5aebe16fec5db6d2e77dd4eda1bf..cb3ca27150b1af4dd9bfb80a2720c7975809b4dc 100644 (file)
@@ -1,5 +1,5 @@
 /* Store current floating-point environment.
-   Copyright (C) 1997, 1998, 1999, 2000, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -24,9 +24,6 @@ fegetenv (fenv_t *envp)
 {
   fpu_control_t temp;
   _FPU_GETCW (temp);
-  /* When read fpscr, this was initialized.
-     We need to rewrite value of temp. */
-  _FPU_SETCW (temp);
 
   envp->__fpscr = temp;
 
index a2faaac3326965cb030158e3b2e95503316bc22e..038fe973cab0ce440bab038157ab24e5395b50f8 100644 (file)
@@ -27,9 +27,6 @@ fegetexcept (void)
 
   /* Get current exceptions.  */
   _FPU_GETCW (temp);
-  /* When read fpscr, this was initialized.
-     We need to rewrite value of temp. */
-  _FPU_SETCW (temp);
 
   return (temp >> 5) & FE_ALL_EXCEPT;
 }
index 4edf9c5d888897ad0f16e8fd06980b4c7c807a1a..82e13b68ee6b253a853eefae508acbc247fabbc3 100644 (file)
@@ -1,5 +1,5 @@
 /* Set current rounding direction.
-   Copyright (C) 1998, 2000, 2005, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
 
index 729e8bf3ecf70bb5ab135c3849b561f99097b528..974f192e15f34386fbd88b1ec650751ac15843c8 100644 (file)
@@ -1,5 +1,5 @@
 /* Raise given exceptions.
-   Copyright (C) 1997, 1998, 2000, 2002, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Nobuhiro Iwamatsu <iwamatsu@nigauri.org>, 2012.
 
index c61af4ce0a3a4b666fa4e5947d666b6a9761d735..8f0961148f04bd5b866a0f27f51cf7e60f8e1fad 100644 (file)
@@ -26,9 +26,6 @@ fetestexcept (int excepts)
 
   /* Get current exceptions.  */
   _FPU_GETCW (temp);
-  /* When read fpscr, this was initialized.
-     We need to rewrite value of temp. */
-  _FPU_SETCW (temp);
 
   return temp & excepts & FE_ALL_EXCEPT;
 }