SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
lang/ruby/3.1/patches/patch-compile_c
Normal file
17
lang/ruby/3.1/patches/patch-compile_c
Normal file
|
@ -0,0 +1,17 @@
|
|||
Disable peephole optimizer on mips64 and sparc64, since it occasionally
|
||||
segfaults.
|
||||
|
||||
Index: compile.c
|
||||
--- compile.c.orig
|
||||
+++ compile.c
|
||||
@@ -2906,6 +2906,10 @@ 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:
|
||||
optimize_checktype(iseq, iobj);
|
Loading…
Add table
Add a link
Reference in a new issue