authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 17:02:20+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 20:17:03+02:00
log5dd66cd964dba48709a817e86dc004ed703e5ab1
tree49b4e6bbab254493d815483bf8af29c795f2a144
parente6788625209adeeb06d0dde516f0cb8e25e338bf
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Fix C type alignment calculation for ve.


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

lib/std/Target.zig+2-2
...@@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2345 .xcore,2345 .xcore,
2346 .loongarch32,2346 .loongarch32,
2347 .kalimba,2347 .kalimba,
2348 .ve,
2349 .spu_2,2348 .spu_2,
2350 .xtensa,2349 .xtensa,
2351 => 4,2350 => 4,
...@@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2380 .riscv64,2379 .riscv64,
2381 .sparc64,2380 .sparc64,
2382 .x86_64,2381 .x86_64,
2382 .ve,
2383 .wasm32,2383 .wasm32,
2384 .wasm64,2384 .wasm64,
2385 => 16,2385 => 16,
...@@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2450 .xcore,2450 .xcore,
2451 .loongarch32,2451 .loongarch32,
2452 .kalimba,2452 .kalimba,
2453 .ve,
2454 .spu_2,2453 .spu_2,
2455 .xtensa,2454 .xtensa,
2456 => 4,2455 => 4,
...@@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2492 .riscv64,2491 .riscv64,
2493 .sparc64,2492 .sparc64,
2494 .x86_64,2493 .x86_64,
2494 .ve,
2495 .wasm32,2495 .wasm32,
2496 .wasm64,2496 .wasm64,
2497 => 16,2497 => 16,