From: Segher Boessenkool Date: Fri, 20 May 2016 21:31:17 +0000 (+0200) Subject: This fixes a bug in my r236491: on nvptx, functions without prologue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e93044fc02fccbc70044fa0bd51a53c9f3439e32;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc38a17973c..04a098bf409 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-20 Segher Boessenkool + + * function.c (thread_prologue_and_epilogue_insns): Commit the + insertion of the epilogue. + 2016-05-20 Martin Jambor PR tree-optimization/70884 diff --git a/gcc/function.c b/gcc/function.c index 5ff17c75b26..726c20ca017 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. */