This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Warning message when building tst-pthread-getattr.c
- From: Florian Weimer <fweimer at redhat dot com>
- To: Steve Ellcey <sellcey at marvell dot com>
- Cc: "libc-alpha\@sourceware.org" <libc-alpha at sourceware dot org>
- Date: Fri, 26 Jul 2019 00:17:05 +0200
- Subject: Re: Warning message when building tst-pthread-getattr.c
- References: <68cc823b4393cf2fe55cd1e38878138781d3fd6b.camel@marvell.com>
* 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