jump.c (never_reached_warning): Don't set contains_insn until the first line note...
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Mon, 4 Nov 2002 05:01:21 +0000 (05:01 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 4 Nov 2002 05:01:21 +0000 (05:01 +0000)
* jump.c (never_reached_warning): Don't set contains_insn until the
first line note is seen.

From-SVN: r58785

gcc/ChangeLog
gcc/jump.c

index 76d0d4407ebbc4571fafc6968755482dd7617a30..0e0f0eea8f17d22fa549fd13e94ce8d4193a4e50 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * jump.c (never_reached_warning): Don't set contains_insn until the
+       first line note is seen.
+
 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/rs6000.md (movti_string): Use string instructions.
index 3b75110253b505db9458f61e627ffd250936ffef..65312b4cc9811453165139dcd56ac9f197067402 100644 (file)
@@ -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;
        }