This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] [BZ #22593] Fix nextafter and nexttoward declaration
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Cc: nd at arm dot com, Joseph Myers <joseph at codesourcery dot com>, Steve Ellcey <sellcey at cavium dot com>
- Date: Tue, 12 Dec 2017 12:01:04 +0000
- Subject: [PATCH] [BZ #22593] Fix nextafter and nexttoward declaration
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
[BZ #22593]
* math/bits/mathcalls.h (nextafter): Remove const.
(nexttoward): Likewise.
>From f5019ccca13f121e5882920a406f25cb7b3c396f Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue, 12 Dec 2017 10:51:32 +0000
Subject: [PATCH] [BZ #22593] Fix nextafter and nexttoward declaration
These functions set errno and thus the const attribute was wrong.
[BZ #22593]
* math/bits/mathcalls.h (nextafter): Remove const.
(nexttoward): Likewise.
---
math/bits/mathcalls.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h
index d799b62140..7de71938c5 100644
--- a/math/bits/mathcalls.h
+++ b/math/bits/mathcalls.h
@@ -256,9 +256,9 @@ __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp));
__MATHCALL (rint,, (_Mdouble_ __x));
/* Return X + epsilon if X < Y, X - epsilon if X > Y. */
-__MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
+__MATHCALL (nextafter,, (_Mdouble_ __x, _Mdouble_ __y));
# if defined __USE_ISOC99 && !defined __LDBL_COMPAT && !__MATH_DECLARING_FLOATN
-__MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__));
+__MATHCALL (nexttoward,, (_Mdouble_ __x, long double __y));
# endif
# if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
--
2.11.0