mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
stage2: Add SPARC function alignment
This is based on @kubkon's suggestion.
This commit is contained in:
parent
a6ce2fc3dc
commit
47b136e3b3
@ -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,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user