projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed OP_DEFS and OP_USES from macros to function to catch symbol abuse
[fw/sdcc]
/
src
/
SDCCBBlock.c
diff --git
a/src/SDCCBBlock.c
b/src/SDCCBBlock.c
index 2d879cef1f92db395c1e9f155366bd33cbd69823..9b809bed9cfbaca434bc1752508f9e7191917a96 100644
(file)
--- a/
src/SDCCBBlock.c
+++ b/
src/SDCCBBlock.c
@@
-562,7
+562,7
@@
replaceSymBySym (set * sset, operand * src, operand * dest)
{
bitVectUnSetBit (OP_USES (IC_COND (ic)), ic->key);
IC_COND (ic) = operandFromOperand (dest);
{
bitVectUnSetBit (OP_USES (IC_COND (ic)), ic->key);
IC_COND (ic) = operandFromOperand (dest);
- OP_USES
(dest) = bitVectSetBit (OP_USES (dest), ic->key
);
+ OP_USES
_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)
);
continue;
}
continue;
}
@@
-571,7
+571,7
@@
replaceSymBySym (set * sset, operand * src, operand * dest)
bitVectUnSetBit (OP_USES (IC_RIGHT (ic)), ic->key);
IC_RIGHT (ic) = operandFromOperand (dest);
IC_RIGHT (ic)->isaddr = 0;
bitVectUnSetBit (OP_USES (IC_RIGHT (ic)), ic->key);
IC_RIGHT (ic) = operandFromOperand (dest);
IC_RIGHT (ic)->isaddr = 0;
- OP_USES
(dest) = bitVectSetBit (OP_USES (dest), ic->key
);
+ OP_USES
_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)
);
}
if (isOperandEqual (IC_LEFT (ic), src))
}
if (isOperandEqual (IC_LEFT (ic), src))
@@
-587,7
+587,7
@@
replaceSymBySym (set * sset, operand * src, operand * dest)
IC_LEFT (ic) = operandFromOperand (dest);
IC_LEFT (ic)->isaddr = 0;
}
IC_LEFT (ic) = operandFromOperand (dest);
IC_LEFT (ic)->isaddr = 0;
}
- OP_USES
(dest) = bitVectSetBit (OP_USES (dest), ic->key
);
+ OP_USES
_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)
);
}
/* special case for pointer sets */
}
/* special case for pointer sets */
@@
-597,7
+597,7
@@
replaceSymBySym (set * sset, operand * src, operand * dest)
bitVectUnSetBit (OP_USES (IC_RESULT (ic)), ic->key);
IC_RESULT (ic) = operandFromOperand (dest);
IC_RESULT (ic)->isaddr = 1;
bitVectUnSetBit (OP_USES (IC_RESULT (ic)), ic->key);
IC_RESULT (ic) = operandFromOperand (dest);
IC_RESULT (ic)->isaddr = 1;
- OP_USES
(dest) = bitVectSetBit (OP_USES (dest), ic->key
);
+ OP_USES
_SET ((dest), bitVectSetBit (OP_USES (dest), ic->key)
);
}
}
}
}
}
}