Commit 55c623b5 by Ulrich Weigand Committed by Ulrich Weigand

function.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue sequences.

	* function.c (thread_prologue_and_epilogue_insns): Do not crash
	on empty epilogue sequences.

From-SVN: r168463
parent d28139df
2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* function.c (thread_prologue_and_epilogue_insns): Do not crash
on empty epilogue sequences.
2011-01-04 Joseph Myers <joseph@codesourcery.com>
* config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
......
......@@ -5461,7 +5461,8 @@ thread_prologue_and_epilogue_insns (void)
start_sequence ();
epilogue_end = emit_note (NOTE_INSN_EPILOGUE_BEG);
seq = gen_epilogue ();
emit_jump_insn (seq);
if (seq)
emit_jump_insn (seq);
/* Retain a map of the epilogue insns. */
record_insns (seq, NULL, &epilogue_insn_hash);
......
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