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/16198] [x86_64] fegetenv() clears exception mask on x86_64


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

--- Comment #5 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  9be36fb8cb5bcdab5bbbc7a36388dc9a3d1cc397 (commit)
      from  60a2f3c166cebf56048d00cee47b9ed1969844d6 (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=9be36fb8cb5bcdab5bbbc7a36388dc9a3d1cc397

commit 9be36fb8cb5bcdab5bbbc7a36388dc9a3d1cc397
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Mar 26 18:59:08 2014 +0000

    Make x86_64 fegetenv preserve exception mask (bug 16198).

    Bug 16198 is x86_64 fegetenv wrongly masking exceptions for which
    traps are enabled, because that's a side-effect of the fnstenv
    instruction.  This patch fixes it to use fldenv immediately after
    fnstenv, like the i386 version.  Tested x86_64 and x86.

        [BZ #16198]
        * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
        fnstenv.
        * math/test-fenv-preserve.c: New file.
        * math/Makefile (tests): Add test-fenv-preserve.

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

Summary of changes:
 ChangeLog                                     |    8 +++++
 NEWS                                          |    8 +++---
 math/Makefile                                 |    2 +-
 nptl/tst-spin1.c => math/test-fenv-preserve.c |   35 +++++++++++-------------
 sysdeps/x86_64/fpu/fegetenv.c                 |    3 ++
 5 files changed, 32 insertions(+), 24 deletions(-)
 copy nptl/tst-spin1.c => math/test-fenv-preserve.c (62%)

-- 
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]