===
This fixes a bug in my r236491: on nvptx, functions without prologue
would not get an epilogue either.
2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
* function.c (thread_prologue_and_epilogue_insns): Commit the
insertion of the epilogue.
---
gcc/function.c | 1 +
1 file changed, 1 insertion(+)
@@ -5977,6 +5977,7 @@ thread_prologue_and_epilogue_insns (void)
if (epilogue_seq)
{
insert_insn_on_edge (epilogue_seq, exit_fallthru_edge);
+ commit_edge_insertions ();
/* The epilogue insns we inserted may cause the exit edge to no longer
be fallthru. */