git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3814
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
+
2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
* device/include/mcs51/at89c51ed2.h: added.
return TRUE;
/* if they have the same rname */
- if (sym1->rname[0] && sym2->rname[0]
- && strcmp (sym1->rname, sym2->rname) == 0)
+ if (sym1->rname[0] && sym2->rname[0] &&
+ strcmp (sym1->rname, sym2->rname) == 0 &&
+ !(IS_PARM (op2) && IS_ITEMP (op1)))
return TRUE;
/* if left is a tmp & right is not */