https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100164
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Comment on attachment 50643 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50643 Disable <semaphore> on unsupported targets +#else + __gthread_yield(); The changelog said you want to use __thread_yield(); there instead...