projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* as/link/mcs51/aslink.dsp: removed SDK define
[fw/sdcc]
/
src
/
SDCCpeeph.c
diff --git
a/src/SDCCpeeph.c
b/src/SDCCpeeph.c
index 0359d8946bf23d1622925f96d8f554a7395fc201..871ca6768d519e3dc632224f70bb0f54f576ffda 100644
(file)
--- a/
src/SDCCpeeph.c
+++ b/
src/SDCCpeeph.c
@@
-821,7
+821,9
@@
notVolatileVariable(char *var, lineNode *currPl, lineNode *endPl)
op = IC_COND (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
op = IC_COND (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
- (OP_SYMBOL (op)->isspilt && !strcmp(SPIL_LOC (op)->rname, symname)) ))
+ (OP_SYMBOL (op)->isspilt &&
+ SPIL_LOC (op) &&
+ !strcmp(SPIL_LOC (op)->rname, symname)) ))
{
return !op->isvolatile;
}
{
return !op->isvolatile;
}
@@
-829,7
+831,9
@@
notVolatileVariable(char *var, lineNode *currPl, lineNode *endPl)
op = IC_JTCOND (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
op = IC_JTCOND (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
- (OP_SYMBOL (op)->isspilt && !strcmp(SPIL_LOC (op)->rname, symname)) ))
+ (OP_SYMBOL (op)->isspilt &&
+ SPIL_LOC (op) &&
+ !strcmp(SPIL_LOC (op)->rname, symname)) ))
{
return !op->isvolatile;
}
{
return !op->isvolatile;
}
@@
-837,21
+841,27
@@
notVolatileVariable(char *var, lineNode *currPl, lineNode *endPl)
op = IC_LEFT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
op = IC_LEFT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
- (OP_SYMBOL (op)->isspilt && !strcmp(SPIL_LOC (op)->rname, symname)) ))
+ (OP_SYMBOL (op)->isspilt &&
+ SPIL_LOC (op) &&
+ !strcmp(SPIL_LOC (op)->rname, symname)) ))
{
return !op->isvolatile;
}
op = IC_RIGHT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
{
return !op->isvolatile;
}
op = IC_RIGHT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
- (OP_SYMBOL (op)->isspilt && !strcmp(SPIL_LOC (op)->rname, symname)) ))
+ (OP_SYMBOL (op)->isspilt &&
+ SPIL_LOC (op) &&
+ !strcmp(SPIL_LOC (op)->rname, symname)) ))
{
return !op->isvolatile;
}
op = IC_RESULT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
{
return !op->isvolatile;
}
op = IC_RESULT (cl->ic);
if (IS_SYMOP (op) &&
( !strcmp(OP_SYMBOL (op)->rname, symname) ||
- (OP_SYMBOL (op)->isspilt && !strcmp(SPIL_LOC (op)->rname, symname)) ))
+ (OP_SYMBOL (op)->isspilt &&
+ SPIL_LOC (op) &&
+ !strcmp(SPIL_LOC (op)->rname, symname)) ))
{
return !op->isvolatile;
}
{
return !op->isvolatile;
}