aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Burrett <nick.burrett@btinternet.com>2000-01-12 10:16:04 +0000
committerJeff Law <law@gcc.gnu.org>2000-01-12 03:16:04 -0700
commit40d7a3fece71ace4f22a9158991846818aa6bce3 (patch)
tree73a20b7fa23564e688da47db07e2875a02732c56 /gcc
parentd2f5d3b8d62025894b378bdf047ebd18006b77d8 (diff)
downloadgcc-40d7a3fece71ace4f22a9158991846818aa6bce3.zip
gcc-40d7a3fece71ace4f22a9158991846818aa6bce3.tar.gz
gcc-40d7a3fece71ace4f22a9158991846818aa6bce3.tar.bz2
gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the condition.
* gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the condition. From-SVN: r31347
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcse.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2dd2055..9f0d293 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
+
+ * gcse.c (delete_null_pointer_checks_1): Cope when
+ get_condition cannot determine the condition.
+
2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
* toplev.h (set_message_length): Declare.
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 254cd06..4de6083 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5131,6 +5131,10 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi)
/* LAST_INSN is a conditional jump. Get its condition. */
condition = get_condition (last_insn, &earliest);
+ /* If we can't determine the condition then skip. */
+ if (! condition)
+ continue;
+
/* Is the register known to have a nonzero value? */
if (!TEST_BIT (nonnull_avout[bb], block_reg[bb] - npi->min_reg))
continue;