Now _naked should work for function calls too. In fact it more or less
[fw/sdcc] / src / ds390 / ralloc.c
index cdffd0028e905f1051d01ee3e4b0bc27e20be442..b2aa0866c80bbe948e11d831c408ecc3dccebd6c 100644 (file)
@@ -2210,7 +2210,7 @@ packForPush (iCode * ic, eBBlock * ebp)
   /* make sure the right side does not have any definitions
      inbetween */
   dbv = OP_DEFS(IC_RIGHT(dic));
-  for (lic = ic; lic != dic ; lic = lic->prev) {
+  for (lic = ic; lic && lic != dic ; lic = lic->prev) {
          if (bitVectBitValue(dbv,lic->key)) return ;
   }
   /* make sure they have the same type */