diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2002-11-04 05:01:21 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2002-11-04 05:01:21 +0000 |
commit | 2ff363e01126d51253d98ec8334dbab24c1830ca (patch) | |
tree | b59e5d31543e1205a81e57ea89ff0bef2036636b /gcc | |
parent | 917c4de19a4e5e391d1b022fb0057f6a7b110ea7 (diff) | |
download | gcc-2ff363e01126d51253d98ec8334dbab24c1830ca.tar.gz |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/jump.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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. 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; } |