Commit d4cf5733 by Jason Merrill Committed by Jason Merrill

jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the new label.

        * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
        new label.

From-SVN: r31721
parent d4bf4842
2000-01-31 Jason Merrill <jason@casey.cygnus.com>
* jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
new label.
2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros. * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
......
...@@ -4639,6 +4639,13 @@ redirect_jump (jump, nlabel) ...@@ -4639,6 +4639,13 @@ redirect_jump (jump, nlabel)
if (nlabel) if (nlabel)
++LABEL_NUSES (nlabel); ++LABEL_NUSES (nlabel);
/* 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)
&& GET_CODE (NEXT_INSN (olabel)) == NOTE
&& NOTE_LINE_NUMBER (NEXT_INSN (olabel)) == NOTE_INSN_FUNCTION_END)
emit_note_after (NOTE_INSN_FUNCTION_END, nlabel);
if (olabel && --LABEL_NUSES (olabel) == 0) if (olabel && --LABEL_NUSES (olabel) == 0)
delete_insn (olabel); delete_insn (olabel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment