projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
[fw/sdcc]
/
src
/
SDCCpeeph.c
diff --git
a/src/SDCCpeeph.c
b/src/SDCCpeeph.c
index 3a12a74cc57a7be26ffce2c21df4ec3309075703..c38627dc2a7e76bfb81779ad823aead57d3c2198 100644
(file)
--- a/
src/SDCCpeeph.c
+++ b/
src/SDCCpeeph.c
@@
-238,6
+238,10
@@
FBYNAME (labelIsReturnOnly)
int len;
char * retInst;
+ /* Don't optimize jumps in a jump table; a more generic test */
+ if (currPl->ic && currPl->ic->op == JUMPTABLE)
+ return FALSE;
+
label = hTabItemWithKey (vars, 5);
if (!label) return FALSE;
len = strlen(label);