git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4620
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
+
+ * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
+ appended by loop induction must be at the very end of the eBBlock
+
2007-02-05 Borut Razem <borut.razem AT siol.net>
* support/regression/fwk/lib/timeout.c: native WIN32 port,
/* if this is true then we put it before the condition else */
/* we put it before if, this is to reduce register pressure, */
/* we don't have to hold condition too long in a register */
- if (ebp->ech->op == IFX)
+
+ /* loop induction sometimes appends a GOTO instruction, */
+ /* it must be at the very end */
+ if (ebp->ech->op == IFX && ic->op != GOTO)
{
iCode *ipoint;