aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKoakuma <koachan@protonmail.com>2022-05-26 13:48:39 +0700
committerKoakuma <koachan@protonmail.com>2022-05-26 13:48:39 +0700
commitc5b99267c0580b166d7ccc2bbf77e9c92566962f (patch)
tree074196152e43765e804e35aed67d027bd79b2ead /src
parent3923722cc617251de91d5bc9a5d4f9c0ca93ee1a (diff)
downloadzig-c5b99267c0580b166d7ccc2bbf77e9c92566962f.tar.gz
zig-c5b99267c0580b166d7ccc2bbf77e9c92566962f.zip
stage2: sparc64: Remove saved_regs_stack_space calculation
SPARC does not have an explicit notion of saving/restoring registers. The usual windowing mechanism (save/restore/return) already takes care of that for us.
Diffstat (limited to 'src')
-rw-r--r--src/arch/sparc64/CodeGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/sparc64/CodeGen.zig b/src/arch/sparc64/CodeGen.zig
index bf08e9a309..f36d4ba45f 100644
--- a/src/arch/sparc64/CodeGen.zig
+++ b/src/arch/sparc64/CodeGen.zig
@@ -407,7 +407,7 @@ fn gen(self: *Self) !void {
}
// Backpatch stack offset
- const total_stack_size = self.max_end_stack + abi.stack_reserved_area; // TODO + self.saved_regs_stack_space;
+ const total_stack_size = self.max_end_stack + abi.stack_reserved_area;
const stack_size = mem.alignForwardGeneric(u32, total_stack_size, self.stack_align);
if (math.cast(i13, stack_size)) |size| {
self.mir_instructions.set(save_inst, .{