Synchronize the function definition with the LLVM documentation.
https://llvm.org/docs/Atomics.html#libcalls-atomic
GCC also returns bool for the same atomic builtin.
Paths
| Differential D79845
[compiler-rt] [builtin] Switch the return type of __atomic_compare_exchange_##n to bool ClosedPublic Authored by krytarowski on May 13 2020, 3:18 AM.
Details Summary Synchronize the function definition with the LLVM documentation. https://llvm.org/docs/Atomics.html#libcalls-atomic GCC also returns bool for the same atomic builtin.
Diff Detail
Event Timelinekrytarowski added a parent revision: D79713: [compiler-rt] [builtins] Port atomic.c to GCC.May 13 2020, 3:19 AM Comment Actions I don't object to this, it more correctly expresses the intent. The original int was taken from the GCC docs describing the ABI for these functions. Have the GCC docs been updated? This revision is now accepted and ready to land.May 13 2020, 4:28 AM krytarowski removed a parent revision: D79713: [compiler-rt] [builtins] Port atomic.c to GCC.May 13 2020, 5:08 AM Closed by commit rGf61f6ffe1126: [compiler-rt] [builtin] Switch the return type of __atomic_compare_exchange_##n… (authored by krytarowski). · Explain WhyMay 13 2020, 5:21 AM This revision was automatically updated to reflect the committed changes.
Diff 263677 compiler-rt/lib/builtins/atomic.c
|