function.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue seque...
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 4 Jan 2011 12:20:45 +0000 (12:20 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 4 Jan 2011 12:20:45 +0000 (12:20 +0000)
* function.c (thread_prologue_and_epilogue_insns): Do not crash
on empty epilogue sequences.

From-SVN: r168463

gcc/ChangeLog
gcc/function.c

index 2563bd1e1695d23652234a496c45dc29efa9e8c9..d3162be53c2adbf678b47063069515b3ec97d8f9 100644 (file)
@@ -1,3 +1,8 @@
+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,
index 0c4d5f82464d75584c5234c8bab945cc71426317..73e59f98ba5056be2865e3d66ccd21718d97d94c 100644 (file)
@@ -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);