diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-27 19:56:32 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-27 19:56:32 +0000 |
commit | 7f6ca11fa7eb5bb1727bbb10a14f503c440f903b (patch) | |
tree | 8de904149a5b419db97fb0725543723f7628872d /gcc/emit-rtl.c | |
parent | 5a5211d177326d2019e27bdb2cebb91f97412181 (diff) | |
download | gcc-7f6ca11fa7eb5bb1727bbb10a14f503c440f903b.tar.gz |
* emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
that AFTER is not in the range FROM..TO, inclusive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 35a4360c973..16032e94044 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); |