diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-30 21:06:02 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-30 21:06:02 +0000 |
commit | 8a139381fb6c75299eea32579ec3f08f8e88f558 (patch) | |
tree | a8a830a12732e3c4e3d788771d58a5e9f5581654 /gcc/rtlanal.c | |
parent | 4a2ca8f34c2b84bbd04eff0d22f97046dfbd0f07 (diff) | |
download | gcc-8a139381fb6c75299eea32579ec3f08f8e88f558.tar.gz |
* rtlanal.c (tablejump_p): Expect table and label to be adjacent.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index b19868579a8..fe708488444 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2711,6 +2711,7 @@ tablejump_p (const_rtx insn, rtx *labelp, rtx *tablep) && (table = next_active_insn (label)) != NULL_RTX && JUMP_TABLE_DATA_P (table)) { + gcc_assert (table == NEXT_INSN (label)); if (labelp) *labelp = label; if (tablep) |