Commit 16c81040 by Mike Stump

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
parent c13210e9
...@@ -1652,6 +1652,14 @@ end_eh_unwinder () ...@@ -1652,6 +1652,14 @@ end_eh_unwinder ()
expand_leftover_cleanups (); expand_leftover_cleanups ();
emit_label (end); 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 /* If necessary, emit insns for the per function unwinder for the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment