diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 16:13:14 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 16:13:14 +0000 |
commit | 5d0c931c899a823fcfcbcb70ae7ab1fead6c3691 (patch) | |
tree | f4d3141cda679bb35bf11e4ca06050cea09a777d /gcc/jump.c | |
parent | d526b550d7c39003fe18b29645d93a9ab8bf64b3 (diff) | |
download | gcc-5d0c931c899a823fcfcbcb70ae7ab1fead6c3691.tar.gz |
PR middle-end/10336, c++/10401
* jump.c (never_reached_warning): Also stop looking if we reach the
beginning of the function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65637 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index b48bc6b0347..5563ee34581 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1913,7 +1913,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; |