accepts --xram-size 0 (no ext ram)
[fw/sdcc] / src / SDCCmem.c
index c98b2bd0f9ab538305821005d907fb901e95be15..b1e192e0169790a8ed915d7e3451b97fc4d00d47 100644 (file)
@@ -844,6 +844,8 @@ allocVariables (symbol * symChain)
          /* if register bank specified then update maxRegBank */
          if (maxRegBank < FUNC_REGBANK (csym->type))
            maxRegBank = FUNC_REGBANK (csym->type);
+         /*JCF: Mark the register bank as used*/
+      RegBankUsed[FUNC_REGBANK(csym->type)]=1;
        }
 
       /* if this is a extern variable then change the */