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

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


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

lib/std/Target.zig+2-2
...@@ -2359,7 +2359,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2359,7 +2359,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2359 .mips,2359 .mips,
2360 .mipsel,2360 .mipsel,
2361 .sparc,2361 .sparc,
2362 .sparc64,
2363 .lanai,2362 .lanai,
2364 .nvptx,2363 .nvptx,
2365 .nvptx64,2364 .nvptx64,
...@@ -2379,6 +2378,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2379,6 +2378,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2379 .powerpc64le,2378 .powerpc64le,
2380 .riscv32,2379 .riscv32,
2381 .riscv64,2380 .riscv64,
2381 .sparc64,
2382 .x86_64,2382 .x86_64,
2383 .wasm32,2383 .wasm32,
2384 .wasm64,2384 .wasm64,
...@@ -2471,7 +2471,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2471,7 +2471,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2471 .mips,2471 .mips,
2472 .mipsel,2472 .mipsel,
2473 .sparc,2473 .sparc,
2474 .sparc64,
2475 .lanai,2474 .lanai,
2476 .nvptx,2475 .nvptx,
2477 .nvptx64,2476 .nvptx64,
...@@ -2491,6 +2490,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2491,6 +2490,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2491 .powerpc64le,2490 .powerpc64le,
2492 .riscv32,2491 .riscv32,
2493 .riscv64,2492 .riscv64,
2493 .sparc64,
2494 .x86_64,2494 .x86_64,
2495 .wasm32,2495 .wasm32,
2496 .wasm64,2496 .wasm64,