diff options
author | Richard Henderson <rth@redhat.com> | 2005-07-28 17:45:57 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-07-28 17:45:57 -0700 |
commit | a560c83ad59db33cdd677feca540d093f84e1f55 (patch) | |
tree | fc4a01d2ad4b642b19279fc1db556118cadb5d28 /gcc | |
parent | 7c4b98b5f1fafe2bab49af1e61e77f710b900cf7 (diff) | |
download | gcc-a560c83ad59db33cdd677feca540d093f84e1f55.zip gcc-a560c83ad59db33cdd677feca540d093f84e1f55.tar.gz gcc-a560c83ad59db33cdd677feca540d093f84e1f55.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cfgcleanup.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c8cc61d..070443d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index fc31377..66a0dec 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 |