This fixes a bug in my r236491: on nvptx, functions without prologue
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 20 May 2016 21:31:17 +0000 (23:31 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 20 May 2016 21:31:17 +0000 (23:31 +0200)
would not get an epilogue either.

* function.c (thread_prologue_and_epilogue_insns): Commit the
insertion of the epilogue.

From-SVN: r236545

gcc/ChangeLog
gcc/function.c

index dc38a17973c19f614e8e8aa6097fe04a35f4a44b..04a098bf40990809945f5469283de11f96f90c54 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * function.c (thread_prologue_and_epilogue_insns): Commit the
+       insertion of the epilogue.
+
 2016-05-20  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/70884
index 5ff17c75b2682b4bdd7615f59a49ffffe5ca1733..726c20ca017e0e04c304b22b3cfa84737cabc72e 100644 (file)
@@ -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.  */