git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1301
4a8a32a2-be11-0410-ad9d-
d568d2c75423
/* if allocation required check is needed
then check if the symbol really requires
allocation only for local variables */
+ if (!sym->allocreq) continue;
+
if (arFlag && !IS_AGGREGATE (sym->type) &&
!(sym->_isparm && !IS_REGPARM (sym->etype)) &&
!sym->allocreq && sym->level)
check if the literal value is within bounds */
if (IS_INTEGRAL (ltype) && right->type == VALUE && IS_LITERAL (rtype))
{
+ /* TODO: this won't warn for e.g. int = -12345678, or bit = -1
+ we need a checkConstant2Type(constVal,sym_link *)
+ also for send and return */
int nbits = bitsForType (ltype);
long v = (long) operandLitValue (right);