https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107221
David Edelsohn <dje at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2022-10-11 Status|UNCONFIRMED |NEW --- Comment #1 from David Edelsohn <dje at gcc dot gnu.org> --- Where is __GTHREADS defined now? -#include <bits/c++config.h> ... +#ifdef __GTHREADS // A single mutex controlling emergency allocations. __gnu_cxx::__mutex emergency_mutex; + using __scoped_lock = __gnu_cxx::__scoped_lock; +#else + int emergency_mutex = 0; + struct __scoped_lock { explicit __scoped_lock(int) { } }; +#endif