From: johanknol Date: Sun, 11 Nov 2001 20:29:57 +0000 (+0000) Subject: fixed bug #480645 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=58c9085458b0701e13399762bb53dd7780f0cdb3;p=fw%2Fsdcc fixed bug #480645 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1569 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index 1f444374..01f5ed65 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -303,9 +303,13 @@ DEFSETFUNC (findCheaperOp) if ((*opp) && (isOperandLiteral(*opp) || +#if 0 // jwk: because of bug #480645, this is clumsy anyway. E.g. getSize(operandType(*opp)) == getSize(operandType(cop)) || (SPEC_USIGN(operandType (cop))==SPEC_USIGN(operandType (*opp)) && (SPEC_LONG(operandType (cop))==SPEC_LONG(operandType (*opp)))))) +#else + compareType(operandType(*opp), operandType(cop))==1)) +#endif { if ((isGlobalInNearSpace (cop) &&