From 521cc292e6ff43cffc0f54d9b1a5243ba0a766e6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 26 Aug 2026 20:54:12 -0700 Subject: [PATCH] std.Target: update spork8 C ABI information in accordance with the specification --- lib/std/Target.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index b0329d1bbf8acc55af342ac5ff2b9388eb66fd89..05527573ce7acafd7c5c0d772f9e2bdf90dc3bbb 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -3108,6 +3108,8 @@ pub fn stackAlignment(target: *const Target) u16 { .kvx => return 32, + .spork8 => return 256, + else => {}, } @@ -3127,6 +3129,7 @@ pub fn stackGrowth(target: *const Target) StackGrowth { return switch (target.cpu.arch) { .hppa, .hppa64, + .spork8, => .up, else => .down, }; @@ -3233,6 +3236,13 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 { .long, .ulong, .float, .double, .longdouble => 32, .longlong, .ulonglong => 64, }, + // https://github.com/benanderman/spork-8/blob/main/Programming.md + .spork8 => switch (c_type) { + .char => 8, + .short, .ushort, .int, .uint => 16, + .long, .ulong, .float => 32, + .double, .longdouble, .longlong, .ulonglong => 64, + }, .mips64, .mips64el, => switch (c_type) { -- 2.54.0