https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100164
--- Comment #3 from Thomas Rodgers <rodgertq at gcc dot gnu.org> --- Created attachment 50643 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50643&action=edit Disable <semaphore> on unsupported targets This patch is probably not the most elegant way to do this, it probably should be a dg-effective-target check and it disables <semaphore> on platforms where there is a suitable Posix implementation, but this feature is experimental for GCC11.