diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-08-10 21:47:35 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-08-10 21:47:35 +0000 |
commit | f79211792127f38d5954419bb3784c8eb7f5e4e5 (patch) | |
tree | 157f46069f8b709e7257e7ec84fbca2a086139e3 /ChangeLog | |
parent | 5220a1aa8da8f9fc6163f67164d3889effb9621c (diff) | |
download | glibc-f79211792127f38d5954419bb3784c8eb7f5e4e5.tar glibc-f79211792127f38d5954419bb3784c8eb7f5e4e5.tar.gz glibc-f79211792127f38d5954419bb3784c8eb7f5e4e5.tar.bz2 glibc-f79211792127f38d5954419bb3784c8eb7f5e4e5.zip |
Fix powerpc fesetexceptflag clearing FE_INVALID (bug 20455).
As shown by the test math/test-fexcept, the powerpc fesetexceptflag
implementation fails to clear a previously set FE_INVALID flag, when
that flag is clear in the saved exceptions and FE_INVALID is included
in the mask of flags to restore, because it fails to mask out the
sub-exceptions of FE_INVALID from the FPSCR state. This patch fixes
the masking logic accordingly.
Tested for powerpc.
[BZ #20455]
* sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
to be restored.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2016-08-10 Joseph Myers <joseph@codesourcery.com> + [BZ #20455] + * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out + all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified + to be restored. + * math/test-fexcept-traps.c: New file. * math/test-fexcept.c: Likewise. * math/Makefile (tests): Add test-fexcept and test-fexcept-traps. |