head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2000.01.28.06.36.12;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Fix building of SML/NJ under 4-CURRENT after 1999/7/25.

The trap handler returns different information after this date for
numeric error conditions.  Since kern.osreldate is not a reliable
indicator of when this change occurred, we revert to checking for
the presence of a particular #define in <machine/trap.h> to decide
if the SML/NJ runtime sources need to use the newer interface.

Submitted by:	 Tom <tcrimi@@andrew.cmu.edu> (in part)
@
text
@*** src.old/runtime/mach-dep/signal-sysdep.h	Sat Jan 22 18:15:21 2000
--- src/runtime/mach-dep/signal-sysdep.h	Sun Jan 23 01:46:53 2000
***************
*** 396,403 ****
  #  elif defined(OPSYS_FREEBSD)
      /** x86, FreeBSD **/
  #    define SIG_FAULT1		SIGFPE
! #    define INT_DIVZERO(s, c)	(((s) == SIGFPE) && ((c) == FPE_INTDIV_TRAP))
! #    define INT_OVFLW(s, c)	(((s) == SIGFPE) && ((c) == FPE_INTOVF_TRAP))
  
  #    define SIG_GetCode(info, scp)	(info)
  #    define SIG_GetPC(scp)		((scp)->sc_pc)
--- 396,403 ----
  #  elif defined(OPSYS_FREEBSD)
      /** x86, FreeBSD **/
  #    define SIG_FAULT1		SIGFPE
! #    define INT_DIVZERO(s, c)	(((s) == SIGFPE) && ((c) == FPE_INTDIV))
! #    define INT_OVFLW(s, c)	(((s) == SIGFPE) && ((c) == FPE_INTOVF))
  
  #    define SIG_GetCode(info, scp)	(info)
  #    define SIG_GetPC(scp)		((scp)->sc_pc)
@
