This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/20455] [powerpc] fesetexceptflag fails to clear FE_INVALID


https://sourceware.org/bugzilla/show_bug.cgi?id=20455

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  f79211792127f38d5954419bb3784c8eb7f5e4e5 (commit)
      from  5220a1aa8da8f9fc6163f67164d3889effb9621c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f79211792127f38d5954419bb3784c8eb7f5e4e5

commit f79211792127f38d5954419bb3784c8eb7f5e4e5
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Aug 10 21:47:35 2016 +0000

    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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                          |    5 +++++
 sysdeps/powerpc/fpu/fsetexcptflg.c |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]