aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/frontend-passes.c
diff options
context:
space:
mode:
authorThomas Rodgers <rodgert@twrodgers.com>2021-04-21 18:12:03 -0700
committerThomas Rodgers <rodgert@twrodgers.com>2021-04-22 07:34:02 -0700
commitae2f6e01749f39b8b8ccc211fc29e5e6ec8b57cd (patch)
treefaa679184d18d0f257388228947b4347d7757b00 /gcc/fortran/frontend-passes.c
parent0cda606d08d6196b76524c7b6ad51d87fed0d54b (diff)
downloadgcc-ae2f6e01749f39b8b8ccc211fc29e5e6ec8b57cd.zip
gcc-ae2f6e01749f39b8b8ccc211fc29e5e6ec8b57cd.tar.gz
gcc-ae2f6e01749f39b8b8ccc211fc29e5e6ec8b57cd.tar.bz2
libstdc++: Fix "bare" notifications dropped by waiters check
For types that track whether or not there extant waiters (e.g. semaphore) internally, the __atomic_notify_address_bare() call was introduced to avoid the overhead of loading the atomic count of waiters. For platforms that don't have Futex, however, there was still a check for waiters, and seeing that there are none (because in the bare case, the count is not incremented), the notification is dropped. This commit addresses that case. libstdc++-v3/ChangeLog: * include/bits/atomic_wait.h: Always notify waiters in the case of 'bare' address notification.
Diffstat (limited to 'gcc/fortran/frontend-passes.c')
0 files changed, 0 insertions, 0 deletions