NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/59134 CVS commit: src/lib/libpthread



The following reply was made to PR lib/59134; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59134 CVS commit: src/lib/libpthread
Date: Wed, 2 Apr 2025 14:23:34 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed Apr  2 14:23:34 UTC 2025
 
 Modified Files:
 	src/lib/libpthread: pthread.c pthread_int.h
 
 Log Message:
 pthread_cancel(3): Use _Atomic consistently with C11 atomics.
 
 Should fix clang build:
 
 /home/source/ab/HEAD-llvm/src/lib/libpthread/pthread.c:1264:8: error: address argument to atomic operation must be a pointer to _Atomic type ('volatile unsigned int *' invalid)
                     (atomic_load_relaxed(&self->pt_cancel) &
                      ^                   ~~~~~~~~~~~~~~~~
 /home/source/ab/HEAD-llvm/src/lib/libpthread/pthread.c:74:2: note: expanded from macro 'atomic_load_relaxed'
         atomic_load_explicit(p, memory_order_relaxed)
         ^                    ~
 /home/builds/ab/HEAD-llvm/amd64/202504020240Z-dest/usr/include/clang-13.0/stdatomic.h:121:30: note: expanded from macro 'atomic_load_explicit'
 #define atomic_load_explicit __c11_atomic_load
 
 PR lib/59134: POSIX-1.2024: pthread_setcancelstate must be
 async-signal-safe
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.186 -r1.187 src/lib/libpthread/pthread.c
 cvs rdiff -u -r1.113 -r1.114 src/lib/libpthread/pthread_int.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index