temporary "fixed" bug #469649, more too come...
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 26 Oct 2001 13:44:42 +0000 (13:44 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 26 Oct 2001 13:44:42 +0000 (13:44 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1447 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c

index 0bd2f2bcc4de221547610e7c03107f5f8804d789..0ccc0023e91f7b4bd99118c31a2d83dd51a5921e 100644 (file)
@@ -1275,7 +1275,8 @@ operandFromSymbol (symbol * sym)
       !sym->_isparm &&         /* not a parameter  */
       sym->level &&            /* is a local variable */
       !sym->addrtaken &&       /* whose address has not been taken */
-      !sym->reqv &&            /* does not already have a register euivalence */
+      !sym->reqv &&            /* does not already have a reg equivalence */
+      !sym->onStack &&          /* jwk: not on stack */
       !IS_VOLATILE (sym->etype) &&     /* not declared as volatile */
       !IS_STATIC (sym->etype) &&       /* and not declared static  */
       !sym->islbl &&           /* not a label */