diff options
author | Jason Merrill <jason@redhat.com> | 2003-04-15 12:16:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-04-15 12:16:44 -0400 |
commit | 28e8cf6d61b0005b1349c80487fe758154ab4e51 (patch) | |
tree | 8547e2a0de492dccbb41743e67c629f3870695a4 /gcc | |
parent | e15c0b683711edeab90be7535e935583e2a4cc37 (diff) | |
download | gcc-28e8cf6d61b0005b1349c80487fe758154ab4e51.zip gcc-28e8cf6d61b0005b1349c80487fe758154ab4e51.tar.gz gcc-28e8cf6d61b0005b1349c80487fe758154ab4e51.tar.bz2 |
PR middle-end/10336, c++/10401
PR middle-end/10336, c++/10401
* jump.c (never_reached_warning): Also stop looking if we reach the
beginning of the function.
From-SVN: r65639
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/jump.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1536259..2c9ce2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-04-15 Jason Merrill <jason@redhat.com> + + PR middle-end/10336, c++/10401 + * jump.c (never_reached_warning): Also stop looking if we reach the + beginning of the function. + 2003-04-14 Hans-Peter Nilsson <hp@axis.com> PR target/10377 @@ -1958,7 +1958,8 @@ never_reached_warning (avoided_insn, finish) us the head of a block, a NOTE_INSN_BASIC_BLOCK, which often follows the line note. */ for (insn = PREV_INSN (avoided_insn); ; insn = PREV_INSN (insn)) - if (GET_CODE (insn) != NOTE) + if (GET_CODE (insn) != NOTE + || NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG) { insn = NEXT_INSN (insn); break; |