re PR rtl-optimization/22619 (Compilation failure for real_const_1.f and real_const_2...
authorRichard Henderson <rth@redhat.com>
Fri, 29 Jul 2005 00:45:57 +0000 (17:45 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 29 Jul 2005 00:45:57 +0000 (17:45 -0700)
        PR rtl-opt/22619
        * cfgcleanup.c (try_forward_edges): Watch out for end of
        insn chain.

From-SVN: r102536

gcc/ChangeLog
gcc/cfgcleanup.c

index c8cc61d258cad17264d48ed99e64bc6509d29cc5..070443d860dbe2e4490f14339f48521ed2c25609 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-28  Richard Henderson  <rth@redhat.com>
+
+       PR rtl-opt/22619
+       * cfgcleanup.c (try_forward_edges): Watch out for end of
+       insn chain.
+
 2005-07-28  James E Wilson  <wilson@specifixinc.com>
 
        PR c/23106
index fc3137727e67ee0c76dce1b959b1da6294601404..66a0dec648862d5418da46f2c70d2aa6b96d48ce 100644 (file)
@@ -537,7 +537,7 @@ try_forward_edges (int mode, basic_block b)
                    && NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG)
                  break;
 
-             if (NOTE_P (insn))
+             if (insn && NOTE_P (insn))
                break;
 
              /* Do not clean up branches to just past the end of a loop