https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89293
Bug ID: 89293 Summary: libphobos: core.atomic should have fallback for no atomic library Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- Currently there's a static assert that fails if GNU_Have_LibAtomic is false. In the absence of atomics, a statically allocated core.sync.mutex.Mutex could be used instead to lock/unlock between operations, making sure there's no risk of using it before D runtime has been initialized.