commit | 67456a66bbe3884cea1d8e2019c4933ae8366937 | [log] [tgz] |
---|---|---|
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | Tue Dec 22 11:43:48 2020 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Sun Jan 03 12:45:01 2021 -0800 |
tree | 6bd0a4f71bc1096ab9426c5120500258b1e43dbd | |
parent | 84775d8d6282fa89ae2a9b86d294201d2dd1166d [diff] |
[compiler-rt] Fix atomic_test.c on macOS The macOS name mangling adds another underscore. Therefore, on macOS the __atomic_* functions are actually ___atomic_* in libcompiler_rt.dylib. To handle this case, prepend the asm() argument with __USER_LABEL_PREFIX__ in the same way that atomic.c does. Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D92833 GitOrigin-RevId: 6277bd75dc71ab6cf856ae9a778cab2c90840ca6