-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.translate-cC to Zig source translation feature (@cImport)C to Zig source translation feature (@cImport)
Milestone
Description
No idea why this is happening. Observed to happen on the FreeBSD CI and AArch64 Drone CI, after the LLVM 14 upgrade.
========= Expected to find: ===================
pub extern var my_array: [16]u8 align(128);
pub export fn my_fn() align(128) void {}
pub export fn other_fn() void {
var ARR: [16]u8 align(16) = undefined;
_ = ARR;
}
========= But file does not contain it: =======
pub extern var my_array: [16]u8;
pub export fn my_fn() align(128) void {}
pub export fn other_fn() void {
var ARR: [16]u8 = undefined;
_ = ARR;
}
Happens with stage1; have not confirmed whether it happens with stage2 or stage3 yet (could make a difference due to LLVM IR C ABI lowerings)
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.translate-cC to Zig source translation feature (@cImport)C to Zig source translation feature (@cImport)