authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-16 12:30:45+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-19 19:21:33+01:00
log28cb8872758fcbfbf3c366944a4866de3c5c758a
tree1cd498fe4b26641fc4127f75ad82d1dd75396a45
parent04ffc1c963a86712cc4be413e1d62d252d51aad2
signaturelock-open Commit is signed but in an unrecognized format.

Zcu: correct `callconvSupported` for self-hosted aarch64


1 files changed, 4 insertions(+), 1 deletions(-)

src/Zcu.zig+4-1
...@@ -3611,7 +3611,10 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu...@@ -3611,7 +3611,10 @@ pub fn callconvSupported(zcu: *Zcu, cc: std.builtin.CallingConvention) union(enu
3611 else => false,3611 else => false,
3612 },3612 },
3613 .stage2_aarch64 => switch (cc) {3613 .stage2_aarch64 => switch (cc) {
3614 .aarch64_aapcs => |opts| opts.incoming_stack_alignment == null,3614 .aarch64_aapcs,
3615 .aarch64_aapcs_darwin,
3616 .aarch64_aapcs_win,
3617 => |opts| opts.incoming_stack_alignment == null,
3615 .naked => true,3618 .naked => true,
3616 else => false,3619 else => false,
3617 },3620 },