mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.Target: fix alignment for int/long types on m68k
This commit is contained in:
parent
fdd32a2257
commit
0b9f5e2549
1 changed files with 8 additions and 0 deletions
|
|
@ -3179,6 +3179,10 @@ pub fn cTypeAlignment(target: *const Target, c_type: CType) u16 {
|
|||
},
|
||||
else => {},
|
||||
},
|
||||
.m68k => switch (c_type) {
|
||||
.int, .uint, .long, .ulong => return 2,
|
||||
else => {},
|
||||
},
|
||||
.powerpc, .powerpcle, .powerpc64, .powerpc64le => switch (target.os.tag) {
|
||||
.aix => switch (c_type) {
|
||||
.double, .longdouble => return 4,
|
||||
|
|
@ -3281,6 +3285,10 @@ pub fn cTypePreferredAlignment(target: *const Target, c_type: CType) u16 {
|
|||
else => {},
|
||||
},
|
||||
},
|
||||
.m68k => switch (c_type) {
|
||||
.int, .uint, .long, .ulong => return 2,
|
||||
else => {},
|
||||
},
|
||||
.wasm32, .wasm64 => switch (target.os.tag) {
|
||||
.emscripten => switch (c_type) {
|
||||
.longdouble => return 8,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue