For ldc and gdc core.atomic already uses the backend intrinsics. It is only dmd that doesn't do that and hence does bad things. Whatever is missing that stdatomic.h needs, should be added. https://github.com/ldc-developers/ldc/blob/master/runtime/druntime/src/core/internal/atomic.d#L24