head	1.3;
access;
symbols
	pkgsrc-2019Q3:1.2.0.28
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.26
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.24
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.22
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.20
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.18
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.2.0.16
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.14
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.12
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.8
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.6
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.4
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.2
	pkgsrc-2016Q3-base:1.2;
locks; strict;
comment	@# @;


1.3
date	2019.10.12.20.00.06;	author he;	state dead;
branches;
next	1.2;
commitid	mcxZuGShEcQadCGB;

1.2
date	2016.07.03.18.33.36;	author dholland;	state Exp;
branches;
next	1.1;
commitid	6x7CqftIBqRzcUcz;

1.1
date	2016.07.03.17.50.31;	author dholland;	state Exp;
branches;
next	;
commitid	50Ob5ArDfMiqXTcz;


desc
@@


1.3
log
@Various updates to smlnj 110.72 so that it builds on NetBSD/powerpc again:
 * Makefile.common: do PLILST.nlffi (though this file isn't used...)
 * Modernize the powerpc entry in signal-sysdep.h to use the
   various _UC_MACHINE_ macros.
 * mk.ppc-netbsd: don't pass an empty RANLIB variable, causing build failure.

Also make checksums of all the three arch-specific distfiles ("boxes"),
for sparc, x86 and ppc.

Bump PKGREVISION.
@
text
@$NetBSD: patch-af,v 1.2 2016/07/03 18:33:36 dholland Exp $

Support for NetBSD, and for NetBSD on PPC.

--- src/runtime/mach-dep/signal-sysdep.h.orig	2006-02-27 17:47:32.000000000 +0000
+++ src/runtime/mach-dep/signal-sysdep.h	2006-03-09 19:15:48.000000000 +0000
@@@@ -171,7 +171,7 @@@@
   /* disable all FP exceptions */
 #  define SIG_InitFPE()    SetFSR(0)
 
-#  if defined(OPSYS_SUNOS)
+#  if defined(OPSYS_SUNOS) || defined(OPSYS_NETBSD)
     /** SPARC, SUNOS **/
 #    define USE_ZERO_LIMIT_PTR_FN
 #    define SIG_FAULT1		SIGFPE
@@@@ -340,6 +340,19 @@@@
 #    define SIG_ResetFPE(scp)           { (scp)->regs->gpr[PT_FPSCR] = 0x0; }
      typedef void SigReturn_t;
 
+#  elif (defined(TARGET_PPC) && defined(OPSYS_NETBSD))
+    /* PPC, NetBSD */
+
+#    define SIG_FAULT1          SIGTRAP
+
+#    define INT_DIVZERO(s, c)           ((s) == SIGTRAP)
+#    define INT_OVFLW(s, c)             ((s) == SIGTRAP)
+#    define SIG_GetPC(scp)              ((scp)->sc_frame.srr0)
+#    define SIG_SetPC(scp, addr)        { (scp)->sc_frame.srr0 = (long)(addr); }
+#    define SIG_ZeroLimitPtr(scp)       { ((scp)->sc_frame.fixreg[15] = 0); } /* limitptr = 15 (see src/runtime/mach-dep/PPC.prim.asm) */
+#    define SIG_GetCode(info,scp)       (info)
+     typedef void SigReturn_t;
+
 #  endif /* HOST_RS6000/HOST_PPC */
 
 #elif defined(HOST_HPPA)
@


1.2
log
@Sync patch comments from main smlnj package.
@
text
@d1 1
a1 1
$NetBSD: patch-af,v 1.1 2016/07/03 17:50:31 dholland Exp $
@


1.1
log
@Add a copy of smlnj from before the last update (so, 110.72) because
this version builds and runs on NetBSD/i386. (Yes, the update was
years back. This is what happens with packages that don't build on
amd64...)
@
text
@d1 3
a3 1
$NetBSD: patch-af,v 1.5 2009/09/22 14:48:47 asau Exp $
@

