aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/std/Target.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
index de603ee12c..2dfbc3f285 100644
--- a/lib/std/Target.zig
+++ b/lib/std/Target.zig
@@ -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,