diff --git a/ChangeLog b/ChangeLog index 68aa879048..8fb6171ce5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-09-05 Gabriel F. T. Gomes + + * math/bits/mathcalls.h (totalorder, totalordermag): Replace + const attribute with pure attribute. + 2019-09-04 Lukasz Majewski * sysdeps/unix/sysv/linux/kernel-features.h diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index 66832c7827..94690c3b42 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -373,13 +373,14 @@ __MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x)); #if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN /* Total order operation. */ -__MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x, const _Mdouble_ *__y)) - __attribute__ ((__const__)); +__MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x, + const _Mdouble_ *__y)) + __attribute__ ((__pure__)); /* Total order operation on absolute values. */ __MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x, const _Mdouble_ *__y)) - __attribute__ ((__const__)); + __attribute__ ((__pure__)); /* Get NaN payload. */ __MATHCALL (getpayload,, (const _Mdouble_ *__x));