mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 02:14:55 +08:00
except.c (end_eh_unwinder): If we have a return instruction...
* except.c (end_eh_unwinder): If we have a return instruction, we have to make sure we use it and don't fall off the end of the function in the unwinder. Fixes EH codegen bug on vax-dec-vms From-SVN: r14258
This commit is contained in:
parent
c13210e902
commit
16c8104062
@ -1652,6 +1652,14 @@ end_eh_unwinder ()
|
||||
expand_leftover_cleanups ();
|
||||
|
||||
emit_label (end);
|
||||
|
||||
#ifdef HAVE_return
|
||||
if (HAVE_return)
|
||||
{
|
||||
emit_jump_insn (gen_return ());
|
||||
emit_barrier ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* If necessary, emit insns for the per function unwinder for the
|
||||
|
Loading…
Reference in New Issue
Block a user