+2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * src/SDCClrange.c (findPrevUse): fixed bug 1888147
+ * support/regression/tests/bug1888147.c: new, added
+
2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
* src/z80/gen.c: fixed bugs #1596270, #1736867
/* computeLiveRanges() is called twice */
if (emitWarnings)
{
- werrorfl (ic->filename, ic->lineno, W_LOCAL_NOINIT,
- IS_ITEMP (op) ? OP_SYMBOL (op)->prereqv->name :
- OP_SYMBOL (op)->name);
if (IS_ITEMP (op))
{
- OP_SYMBOL (op)->prereqv->reqv = NULL;
- OP_SYMBOL (op)->prereqv->allocreq = 1;
+ if (OP_SYMBOL (op)->prereqv)
+ {
+ werrorfl (ic->filename, ic->lineno, W_LOCAL_NOINIT,
+ OP_SYMBOL (op)->prereqv->name);
+ OP_SYMBOL (op)->prereqv->reqv = NULL;
+ OP_SYMBOL (op)->prereqv->allocreq = 1;
+ }
+ }
+ else
+ {
+ werrorfl (ic->filename, ic->lineno, W_LOCAL_NOINIT,
+ OP_SYMBOL (op)->name);
}
}
/* is this block part of a loop? */
- if (IS_ITEMP (op) &&
- ebp->depth != 0)
+ if (IS_ITEMP (op) && ebp->depth != 0)
{
/* extend the life range to the outermost loop */
unvisitBlocks(ebbs, count);