From 601352feab3364f14ccfc8db193bb3dbc5ad7771 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell <carlos@systemhalted.org> Date: Mon, 12 May 2008 12:09:21 +0000 Subject: [PATCH] 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. --- ChangeLog.hppa | 6 ++++++ sysdeps/hppa/fpu/fesetenv.c | 4 ++-- 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;