From: johanknol Date: Mon, 16 Jul 2001 15:40:54 +0000 (+0000) Subject: temporary fix for bug #441448 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=cb05bc2dfa7f8217c5b99e1ecd369e331927057e;p=fw%2Fsdcc temporary fix for bug #441448 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1075 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/ralloc.c b/src/ds390/ralloc.c index 2ff9574e..311107f4 100644 --- a/src/ds390/ralloc.c +++ b/src/ds390/ralloc.c @@ -2301,6 +2301,8 @@ packRegisters (eBBlock * ebp) /* if this is a +/- operation with a rematerizable then mark this as rematerializable as well */ +#if 0 + // jwk 20010716: temporary disabled because of bug #441448 if ((ic->op == '+' || ic->op == '-') && (IS_SYMOP (IC_LEFT (ic)) && IS_ITEMP (IC_RESULT (ic)) && @@ -2314,6 +2316,7 @@ packRegisters (eBBlock * ebp) OP_SYMBOL (IC_RESULT (ic))->rematiCode = ic; OP_SYMBOL (IC_RESULT (ic))->usl.spillLoc = NULL; } +#endif /* mark the pointer usages */ if (POINTER_SET (ic)) diff --git a/src/mcs51/ralloc.c b/src/mcs51/ralloc.c index c41430f4..1bc23245 100644 --- a/src/mcs51/ralloc.c +++ b/src/mcs51/ralloc.c @@ -2265,7 +2265,7 @@ packRegisters (eBBlock * ebp) for (ic = ebp->sch; ic; ic = ic->next) { - /* if this is an itemp & result of a address of a true sym + /* if this is an itemp & result of an address of a true sym then mark this as rematerialisable */ if (ic->op == ADDRESS_OF && IS_ITEMP (IC_RESULT (ic)) && @@ -2297,6 +2297,8 @@ packRegisters (eBBlock * ebp) /* if this is a +/- operation with a rematerizable then mark this as rematerializable as well */ +#if 0 + // jwk 20010716: temporary disabled because of bug #441448 if ((ic->op == '+' || ic->op == '-') && (IS_SYMOP (IC_LEFT (ic)) && IS_ITEMP (IC_RESULT (ic)) && @@ -2308,6 +2310,7 @@ packRegisters (eBBlock * ebp) OP_SYMBOL (IC_RESULT (ic))->rematiCode = ic; OP_SYMBOL (IC_RESULT (ic))->usl.spillLoc = NULL; } +#endif /* mark the pointer usages */ if (POINTER_SET (ic)) @@ -2552,7 +2555,6 @@ mcs51_assignRegisters (eBBlock ** ebbs, int count) /* now get back the chain */ ic = iCodeLabelOptimize (iCodeFromeBBlock (ebbs, count)); - gen51Code (ic); /* free up any _G.stackSpil locations allocated */