cfgrtl.c (try_redirect_by_replacing_jump): Disable removing tablejumps with no optimization.

* cfgrtl.c (try_redirect_by_replacing_jump): Disable removing
        tablejumps with no optimization.

From-SVN: r64933
This commit is contained in:
Richard Henderson 2003-03-27 14:25:48 -08:00 committed by Richard Henderson
parent 4ae242aa24
commit 99a6ccba33
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -665,7 +665,6 @@ try_redirect_by_replacing_jump (e, target)
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)
@ -675,11 +674,7 @@ try_redirect_by_replacing_jump (e, target)
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. */