From: johanknol Date: Tue, 28 Aug 2001 15:07:22 +0000 (+0000) Subject: fixed bug #455597 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=931cf7619cfa666ea0ae845462111379e17c6212;p=fw%2Fsdcc fixed bug #455597 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1184 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index fb96762c..52bd5593 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -326,6 +326,14 @@ DEFSETFUNC (findCheaperOp) (*opp)->isaddr = cop->isaddr; } + if ((*opp)->type==VALUE && + IS_SYMOP(cop) && + !IS_SPEC(OP_SYMBOL(cop)->type)) { + // this could be a pointer to some space, so we can not + *opp=NULL; + return 0; + } + return 1; }