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.
This commit is contained in:
Carlos O'Donell 2008-05-12 12:09:21 +00:00
parent 098cab74db
commit 601352feab
2 changed files with 8 additions and 2 deletions

View 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

View 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;