From: MaartenBrock Date: Tue, 13 Jun 2006 15:02:07 +0000 (+0000) Subject: * src/SDCClrange.c (findPrevUse): fixed bug 1294475 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=38efb0b7fa88739abee22c082c6b811a8e3c809b;p=fw%2Fsdcc * src/SDCClrange.c (findPrevUse): fixed bug 1294475 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4225 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ae4ec7a9..dcdbdd0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and 1208515 + * src/SDCClrange.c (findPrevUse): fixed bug 1294475 2006-06-13 Vangelis Rokas diff --git a/src/SDCClrange.c b/src/SDCClrange.c index 3d05ad80..e7208a2f 100644 --- a/src/SDCClrange.c +++ b/src/SDCClrange.c @@ -442,8 +442,12 @@ findPrevUse (eBBlock *ebp, iCode *ic, operand *op, { /* computeLiveRanges() is called twice */ if (!emitWarnings) - werrorfl (ic->filename, ic->lineno, W_LOCAL_NOINIT, - OP_SYMBOL (op)->prereqv); + { + werrorfl (ic->filename, ic->lineno, W_LOCAL_NOINIT, + OP_SYMBOL (op)->prereqv); + OP_SYMBOL (op)->prereqv->reqv = NULL; + OP_SYMBOL (op)->prereqv->allocreq = 1; + } /* is this block part of a loop? */ if (ebp->depth != 0) {