aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-06 11:57:46 +0100
committerlemon <lsof@mailbox.org>2026-03-06 11:58:01 +0100
commit396d39705cd0bdfd6858fc8fe782c13e5328fb8e (patch)
tree6f517a7a4fc7911ef1bcbae90f3d85bfbafac8fb /ir
parente28b2c8b2b3a059fcab043d5ab91b620c0a4890b (diff)
ir: increase per-function stack size limit
Diffstat (limited to 'ir')
-rw-r--r--ir/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/stack.c b/ir/stack.c
index 1dc29cd..40a7b1d 100644
--- a/ir/stack.c
+++ b/ir/stack.c
@@ -17,7 +17,7 @@ lowerstack(struct function *fn)
uint siz = ins->l.i << alignlog2;
fn->stksiz += siz;
fn->stksiz = alignup(fn->stksiz, 1 << alignlog2);
- if (fn->stksiz > (1<<16)-1) error(NULL, "'%s' stack frame too big", fn->name);
+ if (fn->stksiz > (1<<20)-1) error(NULL, "'%s' stack frame too big", fn->name);
*ins = mkinstr(Onop,0,);
replcuses(mkref(RTMP, t), mkref(RSTACK, fn->stksiz));
}