From 2ff363e01126d51253d98ec8334dbab24c1830ca Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 4 Nov 2002 05:01:21 +0000 Subject: [PATCH] jump.c (never_reached_warning): Don't set contains_insn until the first line note is seen. * jump.c (never_reached_warning): Don't set contains_insn until the first line note is seen. From-SVN: r58785 --- gcc/ChangeLog | 5 +++++ gcc/jump.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 76d0d4407eb..0e0f0eea8f1 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 3b75110253b..65312b4cc98 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; } -- 2.30.2