diff options
author | Andreas Schwab <schwab@suse.de> | 1999-05-22 17:14:30 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 1999-05-22 17:14:30 +0000 |
commit | 0151001634ca06e77fcf4a3f6eedbb2c14ad2aeb (patch) | |
tree | 6726109504edf62d341fb3220b2b1ed491daf3dd /sysdeps/m68k/fpu/feholdexcpt.c | |
parent | d32a40205f162b1d58b0e655bad3a3054f36ac8e (diff) | |
download | glibc-0151001634ca06e77fcf4a3f6eedbb2c14ad2aeb.tar.gz glibc-0151001634ca06e77fcf4a3f6eedbb2c14ad2aeb.tar.xz glibc-0151001634ca06e77fcf4a3f6eedbb2c14ad2aeb.zip |
* sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
names to protect from user's macro namespace. * sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c: Adapted.
Diffstat (limited to 'sysdeps/m68k/fpu/feholdexcpt.c')
-rw-r--r-- | sysdeps/m68k/fpu/feholdexcpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/m68k/fpu/feholdexcpt.c b/sysdeps/m68k/fpu/feholdexcpt.c index e36617d962..1ccf84bc86 100644 --- a/sysdeps/m68k/fpu/feholdexcpt.c +++ b/sysdeps/m68k/fpu/feholdexcpt.c @@ -1,5 +1,5 @@ /* Store current floating-point environment and clear exceptions. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> @@ -29,10 +29,10 @@ feholdexcept (fenv_t *envp) __asm__ ("fmovem%.l %/fpcr/%/fpsr/%/fpiar,%0" : "=m" (*envp)); /* Now clear all exceptions. */ - fpsr = envp->status_register & ~FE_ALL_EXCEPT; + fpsr = envp->__status_register & ~FE_ALL_EXCEPT; __asm__ __volatile__ ("fmove%.l %0,%/fpsr" : : "dm" (fpsr)); /* And set all exceptions to non-stop. */ - fpcr = envp->control_register & ~(FE_ALL_EXCEPT << 6); + fpcr = envp->__control_register & ~(FE_ALL_EXCEPT << 6); __asm__ __volatile__ ("fmove%.l %0,%!" : : "dm" (fpcr)); return 1; |