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: Warning message when building tst-pthread-getattr.c


* Steve Ellcey:

> I just built the latest glibc with the latest gcc and, when running the
> testsuite, got an error.  Has anyone else seen this?  It doesn't look like
> the test has changed recently so I am guessing that GCC just got stricter
> in its checking.  Should we add a DIAG_IGNORE_NEEDS_COMMENT here?

I posted a patch which is pending RM acknowledgement:

  <https://sourceware.org/ml/libc-alpha/2019-07/msg00503.html>

Andreas suggested to use uintptr_t instead.

(We may have to revisit this if access to integer values derived from
pointers becomes undefined once the object ceases to exist, and if the
compiler starts warning about that as well.)

Thanks,
Florian


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