2008-05-12 Aurelien Jarno <aurelien@aurel32.net>
authorCarlos O'Donell <carlos@systemhalted.org>
Mon, 12 May 2008 12:09:21 +0000 (12:09 +0000)
committerCarlos O'Donell <carlos@systemhalted.org>
Mon, 12 May 2008 12:09:21 +0000 (12:09 +0000)
[BZ #6506]
* sysdeps/hppa/fpu/fesetenv.c: bufptr is always read, temp is
read while writing back status word.

ChangeLog.hppa
sysdeps/hppa/fpu/fesetenv.c

index 1bc6138..67524ba 100644 (file)
@@ -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
index b5753ef..1a5ca65 100644 (file)
@@ -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;