linamh/dev-embedded/cc65/files/patch-2.12.0-02.patch
2009-12-07 18:13:02 +00:00

35 lines
919 B
Diff

Index: coptind.c
===================================================================
--- coptind.c (revision 3903)
+++ coptind.c (working copy)
@@ -406,17 +406,12 @@
/* Remember, we had changes */
++Changes;
- /* Done */
- continue;
-
- }
-
/* Check if both are conditional branches, and the condition of
* the second is the inverse of that of the first. In this case,
* the second branch will never be taken, and we may jump directly
* to the instruction behind this one.
*/
- if ((E->Info & OF_CBRA) != 0 && (N->Info & OF_CBRA) != 0) {
+ } else if ((E->Info & OF_CBRA) != 0 && (N->Info & OF_CBRA) != 0) {
CodeEntry* X; /* Instruction behind N */
CodeLabel* LX; /* Label attached to X */
@@ -447,10 +442,6 @@
/* Remember, we had changes */
++Changes;
-
- /* Done */
- continue;
-
}
}