zig icon indicating copy to clipboard operation
zig copied to clipboard

`callconv(.Naked)` functions with parameters cause silent LLVM crash when compiling for PowerPC

Open zeroZshadow opened this issue 1 year ago • 0 comments

Zig Version

0.13.0-dev.267+793f820b3

Steps to Reproduce and Observed Behavior

The following sample will fail compiling without any logs when compiling for powerpc-freestanding-eabi (although likely any PowerPC triple will do)

export fn example(_: u32) callconv(.Naked) void {
}

Expected Behavior

I expected a log indicating LLVM crashed while trying to compile the IR to binary. Although it not crashing would be preferable.

zeroZshadow avatar May 26 '24 16:05 zeroZshadow