From: uz Date: Wed, 30 Sep 2009 14:10:13 +0000 (+0000) Subject: Added an additional precondition check to OptJumpTarget3. X-Git-Tag: V2.13.0rc2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a532a52113eec52e413050a4718ee82453089cbc;p=cc65 Added an additional precondition check to OptJumpTarget3. git-svn-id: svn://svn.cc65.org/cc65/trunk@4280 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index 80d6c772c..de3f67b46 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -771,13 +771,14 @@ unsigned OptJumpTarget3 (CodeSeg* S) CodeLabel* LN = 0; /* Get next entry */ - CodeEntry* E = CS_GetEntry (S, I); + CodeEntry* E = CS_GetEntry (S, I); /* Check if this is a load insn with a label */ if ((E->Info & OF_LOAD) != 0 && CE_IsConstImm (E) && CE_HasLabel (E) && - (N = CS_GetNextEntry (S, I)) != 0) { + (N = CS_GetNextEntry (S, I)) != 0 && + (N->Info & OF_FBRA) == 0) { /* Walk over all insn that jump here */ for (J = 0; J < CE_GetLabelCount (E); ++J) {