authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-10 06:52:25+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-10 08:20:24+01:00
log378eec95b81e803885382ae8432235609c8ef687
tree5aaa9d03d979d51b2a66747831707ff206a42953
parent2c470d24b3c3c939a0ec20292b5d28d92c16b431
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: kvx requires 32-byte aligned stacks


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

lib/std/Target.zig+2-1
...@@ -2885,6 +2885,7 @@ pub fn stackAlignment(target: *const Target) u16 {...@@ -2885,6 +2885,7 @@ pub fn stackAlignment(target: *const Target) u16 {
2885 .ve,2885 .ve,
2886 .wasm32,2886 .wasm32,
2887 .wasm64,2887 .wasm64,
2888 .x86_64,
2888 => return 16,2889 => return 16,
2889 // Some of the following prongs should really be testing the ABI, but our current `Abi` enum2890 // Some of the following prongs should really be testing the ABI, but our current `Abi` enum
2890 // can't handle that level of nuance yet.2891 // can't handle that level of nuance yet.
...@@ -2897,7 +2898,7 @@ pub fn stackAlignment(target: *const Target) u16 {...@@ -2897,7 +2898,7 @@ pub fn stackAlignment(target: *const Target) u16 {
2897 .riscv64be,2898 .riscv64be,
2898 => if (!target.cpu.has(.riscv, .e)) return 16,2899 => if (!target.cpu.has(.riscv, .e)) return 16,
2899 .x86 => if (target.os.tag != .windows and target.os.tag != .uefi) return 16,2900 .x86 => if (target.os.tag != .windows and target.os.tag != .uefi) return 16,
2900 .x86_64 => return 16,2901 .kvx => return 32,
2901 else => {},2902 else => {},
2902 }2903 }
29032904