This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/21134] Exception (divide by zero) not set for y0/y1 (0.0) and y0/y1 (-0.0) when linking with -lieee
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 15 Feb 2017 13:02:29 +0000
- Subject: [Bug math/21134] Exception (divide by zero) not set for y0/y1 (0.0) and y0/y1 (-0.0) when linking with -lieee
- Auto-submitted: auto-generated
- References: <bug-21134-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21134
--- Comment #2 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 4918e5f4cd63290bb0b2c614f52092ca6a779126 (commit)
from 10303eb74bfe33d46ef167d2ea31c746ea1cd6ad (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=4918e5f4cd63290bb0b2c614f52092ca6a779126
commit 4918e5f4cd63290bb0b2c614f52092ca6a779126
Author: Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Date: Sun Feb 12 22:36:27 2017 -0200
Fix y0 and y1 exception handling for zero input [BZ #21134]
The Bessel functions of the second type (Yn) should raise the "divide
by zero" exception when input is zero (both positive and negative).
Current code gives the right output, but fails to set the exception.
This error is exposed for float, double, and long double when linking
with -lieee. Without this flag, the error is not exposed, because the
wrappers for these functions, which use __kernel_standard
functionality, set the exception as expected.
Tested for powerpc64le.
[BZ #21134]
* sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
"divide by zero" exception when the input is zero.
* sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
* sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
* sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
sysdeps/ieee754/dbl-64/e_j0.c | 2 +-
sysdeps/ieee754/dbl-64/e_j1.c | 2 +-
sysdeps/ieee754/flt-32/e_j0f.c | 2 +-
sysdeps/ieee754/flt-32/e_j1f.c | 2 +-
sysdeps/ieee754/ldbl-128/e_j0l.c | 2 +-
sysdeps/ieee754/ldbl-128/e_j1l.c | 2 +-
7 files changed, 17 insertions(+), 6 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.