From: Richard Henderson Date: Fri, 29 Jul 2005 00:45:57 +0000 (-0700) Subject: re PR rtl-optimization/22619 (Compilation failure for real_const_1.f and real_const_2... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a560c83ad59db33cdd677feca540d093f84e1f55;p=gcc.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: r102536 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c8cc61d258c..070443d860d 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 James E Wilson PR c/23106 diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index fc3137727e6..66a0dec6488 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -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