re PR middle-end/56798 (ICE in patch_jump_insn, at cfgrtl.c:1238)

PR middle-end/56798
	* cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.

From-SVN: r197307
This commit is contained in:
Steven Bosscher 2013-04-01 15:49:47 +00:00
parent c03e6b5279
commit 6388c7382f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
PR middle-end/56798
* cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (casesi_worker_1): Use next_active_insn instead

View File

@ -51,7 +51,7 @@ inside_basic_block_p (const_rtx insn)
case CODE_LABEL:
/* Avoid creating of basic block for jumptables. */
return (NEXT_INSN (insn) == 0
|| ! JUMP_TABLE_DATA_P (insn));
|| ! JUMP_TABLE_DATA_P (NEXT_INSN (insn)));
case JUMP_INSN:
case CALL_INSN: