This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/21028] Fallback fesetexceptflag should always succeed
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 05 Jan 2017 23:17:02 +0000
- Subject: [Bug math/21028] Fallback fesetexceptflag should always succeed
- Auto-submitted: auto-generated
- References: <bug-21028-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21028
--- 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 f68fcd95d34d2f2ac286b9ebb64e3a07e36a20cf (commit)
from 38765ab68f329fd84a5984decc8953f8c89d6e5c (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=f68fcd95d34d2f2ac286b9ebb64e3a07e36a20cf
commit f68fcd95d34d2f2ac286b9ebb64e3a07e36a20cf
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Jan 5 23:15:47 2017 +0000
Make fallback fesetexceptflag always succeed (bug 21028).
The fallback implementation of fesetexceptflag currently fails if any
exceptions are specified. It should always succeed, because the
exception state is always that all exceptions (if any are defined in
<fenv.h> but not supported in this configuration) are always clear,
just as fallback fetestexcept always succeeds and fallback fesetenv
always succeeds unless asked to set FE_NOMASK_ENV.
This patch fixes it accordingly. Together with the patch to
test-fexcept.c to allow feraiseexcept to fail in another place, this
stops that test from failing for MIPS soft-float.
Tested for mips64 soft-float.
[BZ #21028]
* math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
* math/test-fexcept.c (test_set): Allow failure of feraiseexcept
if EXCEPTION_TESTS returns false.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
math/fsetexcptflg.c | 5 +++--
math/test-fexcept.c | 8 +++++++-
3 files changed, 17 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.