commit e03cbb117ee661824a1025ffee39f3ae80e660a9 (tree)
parent ed69821f5b4e47b25b95d2a1099e95ece477b66a
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 3 Apr 2020 16:07:32 -0400
compiler-rt: don't forget to export these functions
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/std/special/compiler_rt/atomics.zig b/lib/std/special/compiler_rt/atomics.zig
@@ -88,6 +88,13 @@ fn __atomic_compare_exchange(
return 0;
}
+comptime {
+ @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage });
+ @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage });
+ @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage });
+ @export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage });
+}
+
// Specialized versions of the GCC atomic builtin functions.
// LLVM emits those iff the object size is known and the pointers are correctly
// aligned.