From: johanknol Date: Sat, 4 Aug 2001 13:22:43 +0000 (+0000) Subject: "fixed" bug 447547 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5c8ff06f61cca8f7c21de41be5bb64e1a218d187;p=fw%2Fsdcc "fixed" bug 447547 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1128 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/ralloc.c b/src/ds390/ralloc.c index c9307ee3..71c20ce1 100644 --- a/src/ds390/ralloc.c +++ b/src/ds390/ralloc.c @@ -2151,6 +2151,10 @@ packRegsForAccUse (iCode * ic) IC_LEFT (uic)->key != IC_RESULT (ic)->key) return; +#if 0 + // this is too dangerous and need further restrictions + // see bug #447547 + /* if one of them is a literal then we can */ if ((IC_LEFT (uic) && IS_OP_LITERAL (IC_LEFT (uic))) || (IC_RIGHT (uic) && IS_OP_LITERAL (IC_RIGHT (uic)))) @@ -2158,6 +2162,7 @@ packRegsForAccUse (iCode * ic) OP_SYMBOL (IC_RESULT (ic))->accuse = 1; return; } +#endif /* if the other one is not on stack then we can */ if (IC_LEFT (uic)->key == IC_RESULT (ic)->key && diff --git a/src/mcs51/ralloc.c b/src/mcs51/ralloc.c index 6b9c977a..b17dcf80 100644 --- a/src/mcs51/ralloc.c +++ b/src/mcs51/ralloc.c @@ -2139,6 +2139,10 @@ packRegsForAccUse (iCode * ic) IC_LEFT (uic)->key != IC_RESULT (ic)->key) return; +#if 0 + // this is too dangerous and need further restrictions + // see bug #447547 + /* if one of them is a literal then we can */ if ((IC_LEFT (uic) && IS_OP_LITERAL (IC_LEFT (uic))) || (IC_RIGHT (uic) && IS_OP_LITERAL (IC_RIGHT (uic)))) @@ -2146,6 +2150,7 @@ packRegsForAccUse (iCode * ic) OP_SYMBOL (IC_RESULT (ic))->accuse = 1; return; } +#endif /* if the other one is not on stack then we can */ if (IC_LEFT (uic)->key == IC_RESULT (ic)->key &&