From: Richard Henderson Date: Fri, 29 Jul 2005 00:51:13 +0000 (-0700) Subject: re PR rtl-optimization/22619 (Compilation failure for real_const_1.f and real_const_2... X-Git-Tag: releases/gcc-3.4.5~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b13751c13c21166407d4430c0bac418c65037d;p=thirdparty%2Fgcc.git re PR rtl-optimization/22619 (Compilation failure for real_const_1.f and real_const_2.f90) PR rtl-opt/22619 * cfgcleanup.c (try_forward_edges): Watch out for end of insn chain. From-SVN: r102537 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbae8f32256f..f5c77d738437 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-07-28 Richard Henderson + + PR rtl-opt/22619 + * cfgcleanup.c (try_forward_edges): Watch out for end of + insn chain. + 2005-07-28 Joseph S. Myers PR c/17188 @@ -103,9 +109,9 @@ 2005-06-04 Richard Henderson - 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 diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 06fb9131a0dd..7321b073403b 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -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