$OpenBSD: patch-compile_c,v 1.4 2020/07/22 10:22:34 visa Exp $

Disable peephole optimizer on mips64 and sparc64, since it occasionally
segfaults.

Index: compile.c
--- compile.c.orig
+++ compile.c
@@ -2456,6 +2456,9 @@ static int
 iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcallopt)
 {
     INSN *const iobj = (INSN *)list;
+#if defined(__mips64__) || defined(__sparc64__)
+    return COMPILE_OK;
+#endif
   again:
     if (IS_INSN_ID(iobj, jump)) {
 	INSN *niobj, *diobj, *piobj;
