ToT build problem with nextafterl/nexttowardl (when using ToT GCC)
Joseph Myers
joseph@codesourcery.com
Mon Dec 11 23:30:00 GMT 2017
On Fri, 8 Dec 2017, Szabolcs Nagy wrote:
> (and i thought functions that may set errno are not pure)
These functions are neither const nor pure. As discussed in
<https://gcc.gnu.org/ml/gcc/2017-12/msg00065.html>, this applies even when
-fno-math-errno is used, because that only means "not required to set
errno" and these functions do in fact set errno.
So the attributes should be removed in glibc (after filing a bug in
Bugzilla since the spurious attributes are a user-visible bug in a
release). That should fix the build issue. Separately, the attributes
should be removed in GCC as being bogus there.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list