aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2008-05-12 12:09:21 +0000
committerCarlos O'Donell <carlos@systemhalted.org>2008-05-12 12:09:21 +0000
commit601352feab3364f14ccfc8db193bb3dbc5ad7771 (patch)
treefb85395e35b409d495ad42085515ca1891be59e1
parent098cab74db4db7c2a229069b9f54c55170f9a6db (diff)
downloadglibc-601352feab3364f14ccfc8db193bb3dbc5ad7771.tar.xz
glibc-601352feab3364f14ccfc8db193bb3dbc5ad7771.zip
2008-05-12 Aurelien Jarno <aurelien@aurel32.net>
[BZ #6506] * sysdeps/hppa/fpu/fesetenv.c: bufptr is always read, temp is read while writing back status word.
-rw-r--r--ChangeLog.hppa6
-rw-r--r--sysdeps/hppa/fpu/fesetenv.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog.hppa b/ChangeLog.hppa
index 1bc6138db3..67524bae36 100644
--- a/ChangeLog.hppa
+++ b/ChangeLog.hppa
@@ -1,3 +1,9 @@
+2008-05-12 Aurelien Jarno <aurelien@aurel32.net>
+
+ [BZ #6506]
+ * sysdeps/hppa/fpu/fesetenv.c: bufptr is always read, temp is
+ read while writing back status word.
+
2008-04-21 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/hppa/bits/shm.h: Fix comment describing
diff --git a/sysdeps/hppa/fpu/fesetenv.c b/sysdeps/hppa/fpu/fesetenv.c
index b5753efabd..1a5ca65921 100644
--- a/sysdeps/hppa/fpu/fesetenv.c
+++ b/sysdeps/hppa/fpu/fesetenv.c
@@ -35,7 +35,7 @@ fesetenv (const fenv_t *envp)
bufptr = temp.buf;
__asm__ (
"fstd,ma %%fr0,8(%1)\n"
- : "=m" (temp), "+r" (bufptr) : : "%r0");
+ : "=m" (temp) : "r" (bufptr) : "%r0");
temp.env.__status_word &= ~(FE_ALL_EXCEPT
| (FE_ALL_EXCEPT << 27)
@@ -56,7 +56,7 @@ fesetenv (const fenv_t *envp)
is loaded last and T-Bit is enabled. */
__asm__ (
"fldd,mb -8(%1),%%fr0\n"
- : "=m" (temp), "+r" (bufptr) : : "%r0" );
+ : : "m" (temp), "r" (bufptr) : "%r0" );
/* Success. */
return 0;