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:
Mike Stump 1997-06-19 01:13:20 +00:00
parent c13210e902
commit 16c8104062

View File

@ -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