From c34fcda20831f05563b414d1719846ed9953aaa6 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 30 Jul 1991 16:05:59 +0000 Subject: [PATCH] Fixes: sometimes entered panic mode with wrong fakestack --- mach/proto/ncg/codegen.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mach/proto/ncg/codegen.c b/mach/proto/ncg/codegen.c index 10da4ff99..124021ee2 100644 --- a/mach/proto/ncg/codegen.c +++ b/mach/proto/ncg/codegen.c @@ -39,7 +39,7 @@ string ad2str(); #define DEBUG(string) {if(Debug) fprintf(stderr,"%-*d%s\n",4*level,level,string);} #endif -#define BROKE() {assert(origcp!=startupcode);DEBUG("BROKE");totalcost=INFINITY;goto doreturn;} +#define BROKE() {assert(origcp!=startupcode || !paniced);DEBUG("BROKE");totalcost=INFINITY;goto doreturn;} #define CHKCOST() {if (totalcost>=costlimit) BROKE();} #ifdef TABLEDEBUG @@ -179,7 +179,7 @@ if (Debug) if (dist 1) fprintf(stderr, "cost after coercions: %u\n", t); myfree((string)besttup); normalfailed: if (stackpad!=tokpatlen) { if (stackpad) { - if (costlimit