From: David Given Date: Mon, 14 Nov 2016 20:47:49 +0000 (+0100) Subject: Allow values left on the stack at the end of the procedure (it's legal!). X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0289b1004ead089ab2a1ccab33102e61a3fba4b8;p=ack.git Allow values left on the stack at the end of the procedure (it's legal!). --- diff --git a/mach/proto/mcg/treebuilder.c b/mach/proto/mcg/treebuilder.c index b0ef5ba87..fcd13611c 100644 --- a/mach/proto/mcg/treebuilder.c +++ b/mach/proto/mcg/treebuilder.c @@ -1643,7 +1643,8 @@ static void generate_tree(struct basicblock* bb) print_stack(); } - assert(stackptr == 0); + /* Yes, we are allowed to leave stuff on the stack at the end of the procedure. + * It's discarded as part of the function return. */ } void tb_procedure(void)