mirror of
https://github.com/ziglang/zig.git
synced 2026-01-17 21:05:12 +00:00
Clang has a completely inconsistent CLI for its integrated assembler for each target architecture. For x86_64, for example, it does not accept an -mcpu parameter, and emits "warning: unused parameter". However, for ARM, -mcpu is needed in order to properly lower assembly to machine code instructions (see new standalone test case provided thanks to @g-w1). This is a compromise between b8f85a805bf61ae11d6ee2bd6d8356fbc98ee3ba and afb9f695b1bdbf81185e7d55d5783bcbab880989.
7 lines
247 B
Zig
7 lines
247 B
Zig
export fn main(r0: u32, r1: u32, atags: u32) callconv(.C) noreturn {
|
|
unreachable; // never gets run so it doesn't matter
|
|
}
|
|
pub fn panic(msg: []const u8, error_return_trace: ?*@import("std").builtin.StackTrace) noreturn {
|
|
while (true) {}
|
|
}
|