* cfgrtl.c (try_redirect_by_replacing_jump): Disable removing
tablejumps with no optimization.
From-SVN: r64933
+2003-03-26 Richard Henderson <rth@redhat.com>
+
+ * cfgrtl.c (try_redirect_by_replacing_jump): Disable removing
+ tablejumps with no optimization.
+
2003-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define __c99.
edge tmp;
rtx set;
int fallthru = 0;
- rtx table;
/* Verify that all targets will be TARGET. */
for (tmp = src->succ; tmp; tmp = tmp->succ_next)
if (tmp || !onlyjump_p (insn))
return false;
- if (flow2_completed && JUMP_LABEL (insn)
- && (table = NEXT_INSN (JUMP_LABEL (insn))) != NULL_RTX
- && GET_CODE (table) == JUMP_INSN
- && (GET_CODE (PATTERN (table)) == ADDR_VEC
- || GET_CODE (PATTERN (table)) == ADDR_DIFF_VEC))
+ if ((!optimize || flow2_completed) && tablejump_p (insn))
return false;
/* Avoid removing branch with side effects. */