Fixed bug #483124
[fw/sdcc] / src / ds390 / ralloc.c
index 9adf61c4fa77af30a5e2c5889ea96bd57f669177..485f47a47c628ce51ad8f35e2a557732625634d1 100644 (file)
@@ -2243,9 +2243,14 @@ packRegsForAccUse (iCode * ic)
 
   /* make sure that the result of this icode is not on the
      stack, since acc is used to compute stack offset */
+#if 0
   if (IS_TRUE_SYMOP (IC_RESULT (uic)) &&
       OP_SYMBOL (IC_RESULT (uic))->onStack)
     return;
+#else
+  ifSymbolOnStack(IC_RESULT(uic))
+    return;
+#endif
 
   /* if either one of them in far space then we cannot */
   if ((IS_TRUE_SYMOP (IC_LEFT (uic)) &&