Commit 5cb7d6b4 by Richard Henderson Committed by Richard Henderson

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
parent 4e2c85f6
2000-05-29 Richard Henderson <rth@cygnus.com>
* jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
if nlabel is null.
2000-05-29 Zack Weinberg <zack@wolery.cumb.org> 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.h (cpp_reader): Remove if_stack. Change * cpplib.h (cpp_reader): Remove if_stack. Change
...@@ -3246,7 +3246,8 @@ redirect_jump (jump, nlabel, delete_unused) ...@@ -3246,7 +3246,8 @@ redirect_jump (jump, nlabel, delete_unused)
/* If we're eliding the jump over exception cleanups at the end of a /* 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. */ 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 && GET_CODE (NEXT_INSN (olabel)) == NOTE
&& NOTE_LINE_NUMBER (NEXT_INSN (olabel)) == NOTE_INSN_FUNCTION_END) && NOTE_LINE_NUMBER (NEXT_INSN (olabel)) == NOTE_INSN_FUNCTION_END)
emit_note_after (NOTE_INSN_FUNCTION_END, nlabel); emit_note_after (NOTE_INSN_FUNCTION_END, nlabel);
......
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