mirror of
https://github.com/ziglang/zig.git
synced 2026-01-06 13:33:21 +00:00
stage2 ARM & AArch64: ensure correct function alignment
This commit is contained in:
parent
b17859b568
commit
c6d46a9b82
@ -818,7 +818,8 @@ pub const Type = extern union {
|
||||
.fn_ccc_void_no_args, // represents machine code; not a pointer
|
||||
.function, // represents machine code; not a pointer
|
||||
=> return switch (target.cpu.arch) {
|
||||
.arm => 4,
|
||||
.arm, .armeb => 4,
|
||||
.aarch64, .aarch64_32, .aarch64_be => 4,
|
||||
.riscv64 => 2,
|
||||
else => 1,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user