about summary refs log tree commit diff
path: root/po/ru.po
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-01-12 01:52:37 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-01-12 01:52:37 +0000
commit4dfb9c941132d7b10b897c678f360fd27d6f5c95 (patch)
treed23f1574d0c125532196465cbe291679c20e976b /po/ru.po
parent6a1cefac196f45d766027c97a6c8c44459c9cccd (diff)
downloadglibc-4dfb9c941132d7b10b897c678f360fd27d6f5c95.tar.gz
glibc-4dfb9c941132d7b10b897c678f360fd27d6f5c95.tar.xz
glibc-4dfb9c941132d7b10b897c678f360fd27d6f5c95.zip
Make fallback fegetexceptflag work with generic fetestexceptflag.
The generic implementation of fetestexceptflag does:

int
fetestexceptflag (const fexcept_t *flagp, int excepts)
{
  /* Most versions of fegetexceptflag store exceptions in a form such
     that this works.  */
  return *flagp & excepts & FE_ALL_EXCEPT;
}

In the case where FE_ALL_EXCEPT is nonzero but exceptions may not be
supported at runtime, this only works if fegetexceptflag cleared all
the bits of FE_ALL_EXCEPT in *flagp; otherwise it accesses
uninitialized data.  This showed up as a failure of
math/test-fetestexceptflag for MIPS o32 soft-float.  This patch makes
the fallback fegetexceptflag store 0 (fexcept_t is an integer type
everywhere) so that this works.  (No bug report in Bugzilla because
this wasn't user-visible - at least, without using tools to detect
uninitialized memory use at runtime - without fetestexceptflag, which
is new in 2.25.)

Tested for MIPS o32 soft-float.

	* math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
	object.
Diffstat (limited to 'po/ru.po')
0 files changed, 0 insertions, 0 deletions