From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28454 invoked by alias); 26 Mar 2014 19:00:24 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 28420 invoked by uid 55); 26 Mar 2014 19:00:20 -0000 From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug math/16198] [x86_64] fegetenv() clears exception mask on x86_64 Date: Wed, 26 Mar 2014 19:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00203.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16198 --- Comment #5 from 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 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.