From e93044fc02fccbc70044fa0bd51a53c9f3439e32 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 20 May 2016 23:31:17 +0200 Subject: This fixes a bug in my r236491: on nvptx, functions without prologue would not get an epilogue either. * function.c (thread_prologue_and_epilogue_insns): Commit the insertion of the epilogue. From-SVN: r236545 --- gcc/function.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 5ff17c7..726c20c 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5966,6 +5966,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. */ -- cgit v1.1