git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2916
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
the other part of bug #814548
+ * src/SDCCpeeph.c (labelInRange): fixed bug #814558
2003-09-30 Bernhard Held <bernhard@bernhardheld.de>
if (!lbl)
return FALSE;
+ /* Don't optimize jumps in a jump table; a more generic test */
+ if (currPl->ic && currPl->ic->op == JUMPTABLE)
+ return FALSE;
+
/* if the previous two instructions are "ljmp"s then don't
do it since it can be part of a jump table */
if (currPl->prev && currPl->prev->prev &&