diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2010-09-27 19:56:32 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2010-09-27 19:56:32 +0000 |
commit | 4f8344ebbd28230f55822c1e9402cc73f2d6f077 (patch) | |
tree | 8de904149a5b419db97fb0725543723f7628872d | |
parent | fdf0b018a6fefd7dffa785b5cae6644343f72912 (diff) | |
download | gcc-4f8344ebbd28230f55822c1e9402cc73f2d6f077.zip gcc-4f8344ebbd28230f55822c1e9402cc73f2d6f077.tar.gz gcc-4f8344ebbd28230f55822c1e9402cc73f2d6f077.tar.bz2 |
emit-rtl.c (reorder_insns_nobb): Sanity-check that AFTER is not in the range FROM..TO, inclusive.
* emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
that AFTER is not in the range FROM..TO, inclusive.
From-SVN: r164664
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e767db3..0cb33a0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ 2010-09-27 Hans-Peter Nilsson <hp@axis.com> + + * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check + that AFTER is not in the range FROM..TO, inclusive. + +2010-09-27 Hans-Peter Nilsson <hp@axis.com> Bernd Schmidt <bernds@codesourcery.com> PR rtl-optimization/45792 diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 35a4360..16032e9 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3977,6 +3977,13 @@ delete_insns_since (rtx from) void reorder_insns_nobb (rtx from, rtx to, rtx after) { +#ifdef ENABLE_CHECKING + rtx x; + for (x = from; x != to; x = NEXT_INSN (x)) + gcc_assert (after != x); + gcc_assert (after != to); +#endif + /* Splice this bunch out of where it is now. */ if (PREV_INSN (from)) NEXT_INSN (PREV_INSN (from)) = NEXT_INSN (to); |