+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.
/* 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
{
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;
/* 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;
}
/* 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.
/* 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.
/* 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;
}