From 58c9085458b0701e13399762bb53dd7780f0cdb3 Mon Sep 17 00:00:00 2001 From: johanknol Date: Sun, 11 Nov 2001 20:29:57 +0000 Subject: [PATCH] fixed bug #480645 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1569 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCcse.c | 4 ++++ 1 file changed, 4 insertions(+) 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) && -- 2.47.2