aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-01-18 07:18:46 +0100
committerJakub Jelinek <jakub@redhat.com>2021-01-18 07:18:46 +0100
commitd3b41bde961713ff4af7e18011126434c497edba (patch)
tree72a909a9aa158d38893c15a79b86ac0649849b27 /gcc/tree-ssa-ifcombine.c
parent994fb69ac1b7d52348e84a021c07b24e285294d0 (diff)
downloadgcc-d3b41bde961713ff4af7e18011126434c497edba.zip
gcc-d3b41bde961713ff4af7e18011126434c497edba.tar.gz
gcc-d3b41bde961713ff4af7e18011126434c497edba.tar.bz2
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.
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
0 files changed, 0 insertions, 0 deletions