aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-02-24 10:34:22 +0000
committerAlan Modra <amodra@gcc.gnu.org>2004-02-24 21:04:22 +1030
commitcb7c3c3f1ade49849a9facbedbb108f94d941bf4 (patch)
tree95a8276beee39439317f038e85f6bd4ff4b875d9 /gcc
parent031e658e58cad675197b845e5c6b311237fabfa7 (diff)
downloadgcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.zip
gcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.tar.gz
gcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.tar.bz2
gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not beginning of block.
* gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not beginning of block. From-SVN: r78361
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b837f4c..bd4942d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-24 Alan Modra <amodra@bigpond.net.au>
+
+ * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
+ beginning of block.
+
2004-02-23 James E Wilson <wilson@specifixinc.com>
* calls.c (precompute_arguments): Update comment.
diff --git a/gcc/gcse.c b/gcc/gcse.c
index b61ee8c..36950b1 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5967,7 +5967,7 @@ delete_null_pointer_checks_1 (unsigned int *block_reg, sbitmap *nonnull_avin,
/* Scan each insn in the basic block looking for memory references and
register sets. */
- stop_insn = NEXT_INSN (BB_HEAD (current_block));
+ stop_insn = NEXT_INSN (BB_END (current_block));
for (insn = BB_HEAD (current_block);
insn != stop_insn;
insn = NEXT_INSN (insn))