summary refs log tree commit diff
path: root/sysdeps/sh/sh4/fpu/fegetenv.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:36:52 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:36:52 +0200
commit366af02c96eea0a03ccd2fa187819d866ac49ba2 (patch)
treedc33d3527aa16bd63da3405b7c074fea08282e5f /sysdeps/sh/sh4/fpu/fegetenv.c
parent793ea8518ff2df20ecbb3fa1c4158b06b653a535 (diff)
downloadglibc-366af02c96eea0a03ccd2fa187819d866ac49ba2.tar.gz
glibc-366af02c96eea0a03ccd2fa187819d866ac49ba2.tar.xz
glibc-366af02c96eea0a03ccd2fa187819d866ac49ba2.zip
SH: Do not re-write fpscr after reading it.
Diffstat (limited to 'sysdeps/sh/sh4/fpu/fegetenv.c')
-rw-r--r--sysdeps/sh/sh4/fpu/fegetenv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/sh/sh4/fpu/fegetenv.c b/sysdeps/sh/sh4/fpu/fegetenv.c
index ca7de16285..cb3ca27150 100644
--- a/sysdeps/sh/sh4/fpu/fegetenv.c
+++ b/sysdeps/sh/sh4/fpu/fegetenv.c
@@ -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;