diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-04 12:20:45 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-04 12:20:45 +0000 |
commit | 11efe736b913c252b3ca50c066351015d7a62f57 (patch) | |
tree | 66cb100bed2103398b2e85fe3c022e4962ea94e2 /gcc/function.c | |
parent | e336b11cd54a5fa713fbad02e7d1ab5d7bf75aed (diff) | |
download | gcc-11efe736b913c252b3ca50c066351015d7a62f57.tar.gz |
* function.c (thread_prologue_and_epilogue_insns): Do not crash
on empty epilogue sequences.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c index 0c4d5f82464..73e59f98ba5 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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); |