gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the...
authorNick Burrett <nick.burrett@btinternet.com>
Wed, 12 Jan 2000 10:16:04 +0000 (10:16 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 12 Jan 2000 10:16:04 +0000 (03:16 -0700)
* gcse.c (delete_null_pointer_checks_1): Cope when
get_condition cannot determine the condition.

From-SVN: r31347

gcc/ChangeLog
gcc/gcse.c

index 2dd20554befedca56b8ae1518af8710453e23388..9f0d293204343ef709ad525b7f128138e3ede141 100644 (file)
@@ -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.
index 254cd067a224c0139f94a966aca02d7837c7b802..4de6083649b51abefb97608f71dab8f2baae55ff 100644 (file)
@@ -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;