diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76d0d4407ebb..0e0f0eea8f17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-03 John David Anglin + + * jump.c (never_reached_warning): Don't set contains_insn until the + first line note is seen. + 2002-11-03 David Edelsohn * config/rs6000/rs6000.md (movti_string): Use string instructions. diff --git a/gcc/jump.c b/gcc/jump.c index 3b75110253b5..65312b4cc981 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1917,7 +1917,7 @@ never_reached_warning (avoided_insn, finish) } else if (INSN_P (insn)) { - if (reached_end) + if (reached_end || a_line_note == NULL) break; contains_insn = 1; }