From 40d7a3fece71ace4f22a9158991846818aa6bce3 Mon Sep 17 00:00:00 2001 From: Nick Burrett Date: Wed, 12 Jan 2000 10:16:04 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gcse.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2dd20554bef..9f0d2932043 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 12 09:39:22 2000 Nick Burrett + + * gcse.c (delete_null_pointer_checks_1): Cope when + get_condition cannot determine the condition. + 2000-01-12 Gabriel Dos Reis * toplev.h (set_message_length): Declare. diff --git a/gcc/gcse.c b/gcc/gcse.c index 254cd067a22..4de6083649b 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; -- 2.30.2