This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6799] nextafter() and nexttoward() doen't set errno on overflow/underflow errors
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 02 Nov 2015 18:55:29 +0000
- Subject: [Bug math/6799] nextafter() and nexttoward() doen't set errno on overflow/underflow errors
- Auto-submitted: auto-generated
- References: <bug-6799-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=6799
--- 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 85422c2acba83852396c9d9fd22ff0493e3606fe (commit)
from a9224562cbe9cfb0bd8d9e637a06141141f9e6e3 (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=85422c2acba83852396c9d9fd22ff0493e3606fe
commit 85422c2acba83852396c9d9fd22ff0493e3606fe
Author: Joseph Myers <joseph@codesourcery.com>
Date: Mon Nov 2 18:54:19 2015 +0000
Make nextafter, nexttoward set errno (bug 6799).
nextafter and nexttoward fail to set errno on overflow and underflow.
This patch makes them do so in cases that should include all the cases
where such errno setting is required by glibc's goals for when to set
errno (but not all cases of underflow where the result is nonzero and
so glibc's goals do not require errno setting).
Tested for x86_64, x86, mips64 and powerpc.
[BZ #6799]
* math/s_nextafter.c: Include <errno.h>.
(__nextafter): Set errno on overflow and underflow.
* math/s_nexttowardf.c: Include <errno.h>.
(__nexttowardf): Set errno on overflow and underflow.
* sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
(__nextafterl): Set errno on overflow and underflow.
* sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
(__nexttoward): Set errno on overflow and underflow.
* sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
(__nexttowardf): Set errno on overflow and underflow.
* sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
(__nextafterf): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
(__nextafterl): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
(__nexttoward): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
(__nexttowardf): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
(__nextafterl): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
(__nexttoward): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
(__nexttowardf): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
(__nexttoward): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
(__nexttowardf): Set errno on overflow and underflow.
* sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
(__nldbl_nexttowardf): Set errno on overflow and underflow.
* sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
(__nextafterl): Set errno on overflow and underflow.
* math/libm-test.inc (nextafter_test_data): Do not allow errno
setting to be missing on overflow. Add more tests.
(nexttoward_test_data): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 37 +++++++++++++++++++++++++++
NEWS | 2 +-
math/libm-test.inc | 20 ++++++++++----
math/s_nextafter.c | 3 ++
math/s_nexttowardf.c | 3 ++
sysdeps/i386/fpu/s_nextafterl.c | 3 ++
sysdeps/i386/fpu/s_nexttoward.c | 3 ++
sysdeps/i386/fpu/s_nexttowardf.c | 3 ++
sysdeps/ieee754/flt-32/s_nextafterf.c | 3 ++
sysdeps/ieee754/ldbl-128/s_nextafterl.c | 3 ++
sysdeps/ieee754/ldbl-128/s_nexttoward.c | 3 ++
sysdeps/ieee754/ldbl-128/s_nexttowardf.c | 3 ++
sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c | 5 +++
sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c | 3 ++
sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c | 3 ++
sysdeps/ieee754/ldbl-96/s_nexttoward.c | 3 ++
sysdeps/ieee754/ldbl-96/s_nexttowardf.c | 3 ++
sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c | 3 ++
sysdeps/m68k/m680x0/fpu/s_nextafterl.c | 3 ++
19 files changed, 102 insertions(+), 7 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.