aboutsummaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-29 14:39:55 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-29 14:39:55 -0700
commit5cb7d6b405489ac3834fc91c7ace2a01a0a7c7cb (patch)
treebe68cc264cff277cd86f82919249dbf28d218a20 /gcc/jump.c
parent4e2c85f6d2392685d5ff19492385d06f982a2c14 (diff)
downloadgcc-5cb7d6b405489ac3834fc91c7ace2a01a0a7c7cb.zip
gcc-5cb7d6b405489ac3834fc91c7ace2a01a0a7c7cb.tar.gz
gcc-5cb7d6b405489ac3834fc91c7ace2a01a0a7c7cb.tar.bz2
jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END if nlabel is null.
* jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END if nlabel is null. From-SVN: r34256
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index a5e8787..d8c3483 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -3246,7 +3246,8 @@ redirect_jump (jump, nlabel, delete_unused)
/* If we're eliding the jump over exception cleanups at the end of a
function, move the function end note so that -Wreturn-type works. */
- if (olabel && NEXT_INSN (olabel)
+ if (olabel && nlabel
+ && NEXT_INSN (olabel)
&& GET_CODE (NEXT_INSN (olabel)) == NOTE
&& NOTE_LINE_NUMBER (NEXT_INSN (olabel)) == NOTE_INSN_FUNCTION_END)
emit_note_after (NOTE_INSN_FUNCTION_END, nlabel);