stage2: Add SPARC function alignment

This is based on @kubkon's suggestion.
This commit is contained in:
Koakuma 2022-04-14 21:55:56 +07:00
parent a6ce2fc3dc
commit 47b136e3b3

View File

@ -669,6 +669,7 @@ pub fn defaultFunctionAlignment(target: std.Target) u32 {
return switch (target.cpu.arch) { return switch (target.cpu.arch) {
.arm, .armeb => 4, .arm, .armeb => 4,
.aarch64, .aarch64_32, .aarch64_be => 4, .aarch64, .aarch64_32, .aarch64_be => 4,
.sparc, .sparcel, .sparcv9 => 4,
.riscv64 => 2, .riscv64 => 2,
else => 1, else => 1,
}; };