gcc/libgomp/config/linux
Jakub Jelinek d3b41bde96 libgomp: Don't access gomp_sem_t as int using atomics unconditionally
This patch introduces gomp_sem_getcount wrapper, which uses sem_getvalue
for POSIX and atomic loads for linux futex and accel.  rtems for now
remains broken.

2021-01-18  Jakub Jelinek  <jakub@redhat.com>

	* config/linux/sem.h (gomp_sem_getcount): New function.
	* config/posix/sem.h (gomp_sem_getcount): New function.
	* config/posix/sem.c (gomp_sem_getcount): New function.
	* config/accel/sem.h (gomp_sem_getcount): New function.
	* task.c (task_fulfilled_p): Use gomp_sem_getcount.
	(omp_fulfill_event): Likewise.
2021-01-18 07:18:46 +01:00
..
alpha Update copyright years. 2021-01-04 10:26:59 +01:00
ia64 Update copyright years. 2021-01-04 10:26:59 +01:00
mips Update copyright years. 2021-01-04 10:26:59 +01:00
powerpc Update copyright years. 2021-01-04 10:26:59 +01:00
s390 Update copyright years. 2021-01-04 10:26:59 +01:00
sparc Update copyright years. 2021-01-04 10:26:59 +01:00
tile Update copyright years. 2021-01-04 10:26:59 +01:00
x86 Update copyright years. 2021-01-04 10:26:59 +01:00
affinity.c Update copyright years. 2021-01-04 10:26:59 +01:00
bar.c Update copyright years. 2021-01-04 10:26:59 +01:00
bar.h Update copyright years. 2021-01-04 10:26:59 +01:00
doacross.h Update copyright years. 2021-01-04 10:26:59 +01:00
futex.h Update copyright years. 2021-01-04 10:26:59 +01:00
lock.c Update copyright years. 2021-01-04 10:26:59 +01:00
mutex.c Update copyright years. 2021-01-04 10:26:59 +01:00
mutex.h Update copyright years. 2021-01-04 10:26:59 +01:00
omp-lock.h
proc.c Update copyright years. 2021-01-04 10:26:59 +01:00
proc.h Update copyright years. 2021-01-04 10:26:59 +01:00
ptrlock.c Update copyright years. 2021-01-04 10:26:59 +01:00
ptrlock.h Update copyright years. 2021-01-04 10:26:59 +01:00
sem.c Update copyright years. 2021-01-04 10:26:59 +01:00
sem.h libgomp: Don't access gomp_sem_t as int using atomics unconditionally 2021-01-18 07:18:46 +01:00
wait.h Update copyright years. 2021-01-04 10:26:59 +01:00