[PATCH] D54456: [libcxx] Allow use of <atomic> in baremetal systems when threading is disabled.

Ian Tessier via Phabricator reviews at reviews.llvm.org
Fri Nov 16 16:38:47 PST 2018

itessier added a comment.

> I absolutely agree. The C++ committee has an ongoing effort to define "freestanding" better, and atomic is tentatively part of this. In particular, you really have to figure out what to do with atomics which aren't lock-free, you can't just turn it on without a rationale.

Ah, I didn't know there was a freestanding effort, thanks for that info.

> These projects should provide atomics through the compiler's builtins. Is that what they do? Do you have details? Are there testbots to ensure we don't break that configuration?

This is for our C++ firmware that already uses std::atomic. We were using libstdc++ (where <atomic> can be used on its own), but have switched to libc++.


More information about the libcxx-commits mailing list