zig/stage1
kcbanner bc28454b43 zig.h: replace _InterlockedExchangeAdd with a plain volatile load
This was causing zig2.exe to crash during bootstrap, because there was an atomic
load of read-only memory, and the attempt to write to it as part of the (idempotent)
atomic exchange was invalid.

Aligned reads (of u32 / u64) are atomic on x86 / x64, so this is replaced with an
optimization-proof load (`__iso_volatile_load8*`) and a reordering barrier.
2024-07-13 17:46:24 -04:00
..
config.h.in build.zig: add support for using "zig c++" as the bootstrap c++ compiler 2023-10-16 23:07:04 +02:00
config.zig.in compiler: audit debug mode checks 2024-03-01 17:42:54 -08:00
FuncGen.h wasm2c: avoid indexing null pointer triggering undefined behavior 2024-06-17 14:34:52 -04:00
InputStream.h remove the zstd mechanism from the build process 2022-12-09 20:59:13 -07:00
panic.h use zig-wasm2c for bootstrapping 2022-12-06 12:15:04 -07:00
wasi.c wasi.c: report no environment variables available 2024-02-27 22:55:00 -07:00
wasm.h use zig-wasm2c for bootstrapping 2022-12-06 12:15:04 -07:00
wasm2c.c wasm2c: fix allocation failure result 2024-03-23 11:32:37 +01:00
zig.h zig.h: replace _InterlockedExchangeAdd with a plain volatile load 2024-07-13 17:46:24 -04:00
zig1.wasm update zig1.wasm 2024-05-08 19:37:29 -07:00