patch-compile_c 509 B

1234567891011121314151617
  1. $OpenBSD: patch-compile_c,v 1.2 2016/11/19 04:56:00 jeremy Exp $
  2. Disable peephole optimizer on sparc64, since it occasionally segfaults.
  3. --- compile.c.orig Fri Nov 11 07:35:29 2016
  4. +++ compile.c Tue Nov 15 07:42:22 2016
  5. @@ -2004,6 +2004,9 @@ static int
  6. iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcallopt)
  7. {
  8. INSN *iobj = (INSN *)list;
  9. +#ifdef __sparc64__
  10. + return COMPILE_OK;
  11. +#endif
  12. again:
  13. if (iobj->insn_id == BIN(jump)) {
  14. INSN *niobj, *diobj, *piobj;