[libc-commits] [libc] [libc] Make 'rand()' thread-safe using atomics instead of TLS (PR #96692)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Jun 26 05:30:31 PDT 2024
jhuber6 wrote:
So, the Fuscia builder thinks that its atomic inline width is zero, which leads to a warning and because we compile with `-Werror` it turns into an error. Any suggestions for this? I don't know the platform, but a maximum atomic inline size of zero seems weird. This is usually set with `MaxAtomicInlineWidth = TargetPointerWidth;` in `clang/lib/Basic/Targets/`. Does anyone who knows Fuscia know if it's true that every single atomic there goes through compiler-rt? Otherwise I think the solution is to ignore the warning.
https://github.com/llvm/llvm-project/pull/96692
More information about the libc-commits
mailing list