commit 862e674758743d722a2d654b394abb1afe34e253 (tree)
parent cd56b06352f816dc82d492071701c26c6fd430c5
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sun, 19 Oct 2025 23:08:27 +0200
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.
Diffstat:
1 file changed, 0 insertions(+), 12 deletions(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -2962,18 +2962,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) u16 {
.wasi,
.emscripten,
=> switch (target.cpu.arch) {
- .msp430 => switch (c_type) {
- .char => return 8,
- .short, .ushort, .int, .uint => return 16,
- .long, .ulong, .float => return 32,
- .longlong, .ulonglong, .double, .longdouble => return 64,
- },
- .avr => switch (c_type) {
- .char => return 8,
- .short, .ushort, .int, .uint => return 16,
- .long, .ulong, .float, .double, .longdouble => return 32,
- .longlong, .ulonglong => return 64,
- },
.mips64, .mips64el => switch (c_type) {
.char => return 8,
.short, .ushort => return 16,