]> git.ipfire.org Git - thirdparty/gcc.git/commit
cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
authorSteven Bosscher <steven@gcc.gnu.org>
Wed, 13 Nov 2013 22:55:49 +0000 (22:55 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 13 Nov 2013 22:55:49 +0000 (22:55 +0000)
commitd7b6661b5518178c86b947a5996afbd468ee69a6
treec0544da5ab78cc2a30727ef7c2fc441c94407305
parentc3d77f3add93300df9893709111089f2a9650e83
cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.

* cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
* haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
looking at INSN_CODE.
* reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
active_insn_p object, respect basic block boundaries.
* reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
follows immediately after the jump table data label.
* config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
* config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
that JUMP_TABLE_DATA is not expected to be an active_insn_p object.

From-SVN: r204758
gcc/ChangeLog
gcc/cfgrtl.c
gcc/config/nds32/nds32.c
gcc/config/sh/sh.c
gcc/haifa-sched.c
gcc/java/ChangeLog
gcc/reload1.c
gcc/reorg.c