]> git.gag.com Git - fw/sdcc/commitdiff
temporary fix for bug #441448
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 16 Jul 2001 15:40:54 +0000 (15:40 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 16 Jul 2001 15:40:54 +0000 (15:40 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1075 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/ralloc.c
src/mcs51/ralloc.c

index 2ff9574eaee311ea60c4446c7d9fb17caf86ad49..311107f4f3486b5ac125d7e86dbedee432308a60 100644 (file)
@@ -2301,6 +2301,8 @@ packRegisters (eBBlock * ebp)
 
       /* if this is a +/- operation with a rematerizable 
          then mark this as rematerializable as well */
 
       /* 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)) &&
       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;
        }
          OP_SYMBOL (IC_RESULT (ic))->rematiCode = ic;
          OP_SYMBOL (IC_RESULT (ic))->usl.spillLoc = NULL;
        }
+#endif
 
       /* mark the pointer usages */
       if (POINTER_SET (ic))
 
       /* mark the pointer usages */
       if (POINTER_SET (ic))
index c41430f4dc3cc24bd3988879bc144640323d2f10..1bc23245e1277e97f4a46c536dd9528ebcce87b6 100644 (file)
@@ -2265,7 +2265,7 @@ packRegisters (eBBlock * ebp)
 
   for (ic = ebp->sch; ic; ic = ic->next)
     {
 
   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)) &&
          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 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)) &&
       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;
        }
          OP_SYMBOL (IC_RESULT (ic))->rematiCode = ic;
          OP_SYMBOL (IC_RESULT (ic))->usl.spillLoc = NULL;
        }
+#endif
 
       /* mark the pointer usages */
       if (POINTER_SET (ic))
 
       /* 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));
 
   /* now get back the chain */
   ic = iCodeLabelOptimize (iCodeFromeBBlock (ebbs, count));
 
-
   gen51Code (ic);
 
   /* free up any _G.stackSpil locations allocated */
   gen51Code (ic);
 
   /* free up any _G.stackSpil locations allocated */