https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146 --- Comment #27 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, we need to reimplement call_once to not use pthread_once at all, for any targets.