This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/21687] tgmath.h totalorder, totalordermag return type
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 28 Jun 2017 16:32:12 +0000
- Subject: [Bug math/21687] tgmath.h totalorder, totalordermag return type
- Auto-submitted: auto-generated
- References: <bug-21687-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21687
--- 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 d12a22c5d351cd1cc125a6345a949dfbc20f6f91 (commit)
from cfa44345234e161cb59987ed70e04719ba155867 (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=d12a22c5d351cd1cc125a6345a949dfbc20f6f91
commit d12a22c5d351cd1cc125a6345a949dfbc20f6f91
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Jun 28 16:31:10 2017 +0000
Fix tgmath.h totalorder, totalordermag return type (bug 21687).
The tgmath.h totalorder and totalordermag macros wrongly return a
floating-point type. They should return int, like the underlying
functions. This patch fixes them accordingly, updating tests
including enabling tests of those functions from gen-tgmath-tests.py.
Tested for x86_64.
[BZ #21687]
* math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): New macro.
(totalorder): Use it.
(totalordermag): Likewise.
* math/gen-tgmath-tests.py (Tests.add_all_tests): Enable tests of
totalorder and totalordermag.
* math/test-tgmath.c (F(compile_test)): Do not call totalorder or
totalordermag in arguments of calls to those functions.
(NCALLS): Change to 134.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
math/gen-tgmath-tests.py | 4 ++--
math/test-tgmath.c | 6 +++---
math/tgmath.h | 20 ++++++++++++++++----
4 files changed, 31 insertions(+), 9 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.