glibc/sysdeps/htl
Martin Sebor a1561c3bbe Add __attribute_access_none to disable GCC warnings [BZ #27714]
GCC 11 warns when a pointer to an uninitialized object is passed
to a function that takes a const-qualified argument.  This is done
on the assumption that most such functions read from the object.
For the rare case of a function that doesn't, GCC 11 extends
attribute access to add a new mode called none.

POSIX pthread_setspecific() is one such rare function that takes
a const void* argument but that doesn't read from the object it
points to.  To suppress the -Wmaybe-uninitialized issued by GCC
11 when the address of an uninitialized object is passed to it
(e.g., the result of malloc()), this change #defines
__attr_access_none in cdefs.h and uses the macro on the function
in sysdeps/htl/pthread.h and sysdeps/nptl/pthread.h.
2021-04-27 13:01:55 -06:00
..
bits
include
Implies
Makeconfig
Makefile
Subdirs
Versions
flockfile.c
ftrylockfile.c
funlockfile.c
futex-internal.h
libc-lock.h
libc-lockP.h Remove pthread_key_create-related internals from libc-lock.h 2021-04-21 19:49:51 +02:00
old_pt-atfork.c
pt-atfork.c fork.h: replace with register-atfork.h 2021-03-29 21:41:09 +02:00
pt-attr-destroy.c
pt-attr-getdetachstate.c
pt-attr-getguardsize.c
pt-attr-getinheritsched.c
pt-attr-getschedparam.c
pt-attr-getschedpolicy.c
pt-attr-getscope.c
pt-attr-getstack.c
pt-attr-getstackaddr.c
pt-attr-getstacksize.c
pt-attr-init.c
pt-attr-setdetachstate.c
pt-attr-setguardsize.c
pt-attr-setinheritsched.c
pt-attr-setschedparam.c
pt-attr-setschedpolicy.c
pt-attr-setscope.c
pt-attr-setstack.c
pt-attr-setstackaddr.c
pt-attr-setstacksize.c
pt-attr.c
pt-barrier-destroy.c
pt-barrier-init.c
pt-barrier-wait.c
pt-barrier.c
pt-barrierattr-destroy.c
pt-barrierattr-getpshared.c
pt-barrierattr-init.c
pt-barrierattr-setpshared.c
pt-cond-brdcast.c
pt-cond-destroy.c
pt-cond-init.c
pt-cond-signal.c
pt-cond-timedwait.c
pt-cond-wait.c
pt-cond.c
pt-condattr-destroy.c
pt-condattr-getclock.c
pt-condattr-getpshared.c
pt-condattr-init.c
pt-condattr-setclock.c
pt-condattr-setpshared.c
pt-destroy-specific.c
pt-equal.c
pt-getconcurrency.c
pt-getcpuclockid.c
pt-getschedparam.c
pt-getspecific.c
pt-init-specific.c
pt-key-create.c
pt-key-delete.c
pt-key.h
pt-once.c
pt-rwlock-attr.c
pt-rwlock-destroy.c
pt-rwlock-init.c
pt-rwlock-rdlock.c
pt-rwlock-timedrdlock.c
pt-rwlock-timedwrlock.c
pt-rwlock-tryrdlock.c
pt-rwlock-trywrlock.c
pt-rwlock-unlock.c
pt-rwlock-wrlock.c
pt-rwlockattr-destroy.c
pt-rwlockattr-getpshared.c
pt-rwlockattr-init.c
pt-rwlockattr-setpshared.c
pt-setconcurrency.c
pt-setschedparam.c
pt-setschedprio.c
pt-setspecific.c
pt-startup.c
pthread-functions.h
pthread.h Add __attribute_access_none to disable GCC warnings [BZ #27714] 2021-04-27 13:01:55 -06:00
pthreadP.h
raise.c
sem-destroy.c
sem-getvalue.c
sem-init.c
sem-post.c
sem-timedwait.c
sem-trywait.c
sem-wait.c
sem-waitfast.c
stdio-lock.h
thrd_current.c
timer_routines.h