except.c (end_eh_unwinder): If we have a return instruction...
authorMike Stump <mrs@gcc.gnu.org>
Thu, 19 Jun 1997 01:13:20 +0000 (01:13 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Thu, 19 Jun 1997 01:13:20 +0000 (01:13 +0000)
* 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

gcc/except.c

index 4701017326acd0ebfe0db6dbecfb3f6f8677c2c3..705e1a8bfb69964e96f74be770859fe547174084 100644 (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