zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c6d46a9b82f04aea439320f0ae8e8a4ed187040e (tree)
parent b17859b56863d18ecadb3cf733799a4381e666ac
Author: joachimschmidt557 <joachim.schmidt557@outlook.com>
Date:   Thu, 12 Nov 2020 16:22:25 +0100

stage2 ARM & AArch64: ensure correct function alignment

Diffstat:
Msrc/type.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/type.zig b/src/type.zig @@ -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, },