]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:51:13 +0000 (17:51 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 29 Jul 2005 00:51:13 +0000 (17:51 -0700)
        PR rtl-opt/22619
        * cfgcleanup.c (try_forward_edges): Watch out for end of
        insn chain.

From-SVN: r102537

gcc/ChangeLog
gcc/cfgcleanup.c

index dbae8f32256f986006a2ddaf174fb0aadc8bfec7..f5c77d7384370c9c2702d851703858fda93490c3 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  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/17188
 
 2005-06-04  Richard Henderson  <rth@redhat.com>
 
-        PR target/21888
-        * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
-        until we've passed initial ldgp.
+       PR target/21888
+       * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
+       until we've passed initial ldgp.
 
 2005-06-01  Richard Henderson  <rth@redhat.com>
 
index 06fb9131a0dd7a9ab26a8a567bcb9d611edb7efc..7321b073403bb8df20197522c1ecc8e5a3c43105 100644 (file)
@@ -521,7 +521,7 @@ try_forward_edges (int mode, basic_block b)
                    && NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG)
                  break;
 
-             if (GET_CODE (insn) == NOTE)
+             if (insn && GET_CODE (insn) == NOTE)
                break;
 
              /* Do not clean up branches to just past the end of a loop