https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146
--- Comment #12 from Rich Felker <bugdal at aerifal dot cx> --- Jakub, this is not the place to discuss the pros and cons of musl or other particular implementations; libstdc++ needs to support many which do not have the glibc-specific semantics you want. In particular there are plenty of BSDs the current code is broken on too. If you want to use pthread_once directly to implement std::call_once on glibc, that's your business, but there needs to be a portable implementation that works on other systems.