fixed bug in packForPush ..
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Jan 2000 17:38:54 +0000 (17:38 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Jan 2000 17:38:54 +0000 (17:38 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@13 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/mcs51/ralloc.c

index 2a7dc805a60e190325191c9e0fb238225925485b..f768d1d4dbcf537257aa5cd9d3bf79fa31e00a9b 100644 (file)
@@ -2003,7 +2003,7 @@ static void packForPush(iCode *ic, eBBlock *ebp)
                                bitVectFirstBit(OP_DEFS(IC_LEFT(ic))))))
        return ;
 
-    if (dic->op != '=' || POINTER_SET(dic))
+    if (dic->op != '=' || POINTER_SET(dic) || IS_ITEMP(IC_RESULT(dic)))
        return;
 
     /* we now we know that it has one & only one def & use