This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ToT build problem with nextafterl/nexttowardl (when using ToT GCC)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]