authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-19 23:08:27+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-23 09:27:17+02:00
log862e674758743d722a2d654b394abb1afe34e253
treee086f6ecd764998bcb26314f27816497ac891ba7
parentcd56b06352f816dc82d492071701c26c6fd430c5
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: remove bogus hosted avr/msp430 prongs in cTypeBitSize()

These are microcontroller architectures; none of the OSs in the outer switch run on them.

1 files changed, 0 insertions(+), 12 deletions(-)

lib/std/Target.zig-12
......@@ -2962,18 +2962,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) u16 {
29622962 .wasi,
29632963 .emscripten,
29642964 => switch (target.cpu.arch) {
2965 .msp430 => switch (c_type) {
2966 .char => return 8,
2967 .short, .ushort, .int, .uint => return 16,
2968 .long, .ulong, .float => return 32,
2969 .longlong, .ulonglong, .double, .longdouble => return 64,
2970 },
2971 .avr => switch (c_type) {
2972 .char => return 8,
2973 .short, .ushort, .int, .uint => return 16,
2974 .long, .ulong, .float, .double, .longdouble => return 32,
2975 .longlong, .ulonglong => return 64,
2976 },
29772965 .mips64, .mips64el => switch (c_type) {
29782966 .char => return 8,
29792967 .short, .ushort => return 16,