mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 02:33:36 +08:00
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:
parent
098cab74db
commit
601352feab
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user