updateSpillocation did not check for nosupdate flag for inductions
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 1 Sep 2001 15:38:50 +0000 (15:38 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 1 Sep 2001 15:38:50 +0000 (15:38 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1203 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCcse.c

index 1420b8ffbfef486131d24a6b859c6446847d11d6..258d5fef2b5aeb21b42decdfeb67684c8106af26 100644 (file)
@@ -901,6 +901,7 @@ updateSpillLocation (iCode * ic, int induction)
                /* special case for inductions */
                if (induction && 
                    OP_SYMBOL(IC_RIGHT(ic))->isreqv && 
+                   !OP_SYMBOL(IC_RESULT (ic))->noSpilLoc &&
                    !SPIL_LOC(IC_RESULT(ic))) {
                        SPIL_LOC (IC_RESULT (ic)) = SPIL_LOC (IC_RIGHT (ic));
                }