authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-03 16:07:32-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-03 16:07:32-04:00
loge03cbb117ee661824a1025ffee39f3ae80e660a9
tree90e1ded47c6d0576ba3a7789ed4e46c64759e82e
parented69821f5b4e47b25b95d2a1099e95ece477b66a
signaturelock-open Commit is signed but in an unrecognized format.

compiler-rt: don't forget to export these functions


1 files changed, 7 insertions(+), 0 deletions(-)

lib/std/special/compiler_rt/atomics.zig+7
......@@ -88,6 +88,13 @@ fn __atomic_compare_exchange(
8888 return 0;
8989}
9090
91comptime {
92 @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage });
93 @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage });
94 @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage });
95 @export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage });
96}
97
9198// Specialized versions of the GCC atomic builtin functions.
9299// LLVM emits those iff the object size is known and the pointers are correctly
93100// aligned.