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
This commit is contained in:
Richard Henderson 2005-07-28 17:45:57 -07:00 committed by Richard Henderson
parent 7c4b98b5f1
commit a560c83ad5
2 changed files with 7 additions and 1 deletions

View 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

View 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