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.03.01.09.56.57;	author tg;	state Exp;
branches;
next	;


desc
@@


1.1
log
@- Convert to ELF.
- Support CC/CFLAGS/PREFIX.

PR:		16677
Submitted by:	KATO Tsuguru <tkato@@prontomail.ne.jp>
@
text
@--- scrt/options.h.orig	Tue Feb 23 01:14:40 1993
+++ scrt/options.h	Wed Feb  2 22:22:22 2000
@@@@ -71,6 +71,7 @@@@
 	MC680X0		HP 9000/300, Sun 3, Next
 	MIPS		DECstation, SGI, Sony News
 	VAX		Vax ULTRIX
+	FREEBSD		x86 FreeBSD
 	WIN16		Microsoft Windows 3.1
 */
 
@@@@ -80,6 +81,7 @@@@
 #define MC680X0 1
 #define MIPS 1
 #define VAX 1
+#define FREEBSD 1
 #define WIN16 1
 
 /* Attributes of the selected architecture:
@@@@ -369,6 +371,34 @@@@
 				*/
 
 #define STACKPTR( x ) x = sc_processor_register( 14 )
+#endif
+
+/***************/
+/*   FREEBSD   */
+/***************/
+
+#ifdef FREEBSD
+#define IMPLEMENTATION_MACHINE	"Generic PC"
+#define IMPLEMENTATION_CPU	"Intelx86"
+#define IMPLEMENTATION_OS	"FreeBSD"
+#undef  IMPLEMENTATION_FS
+
+typedef int S2CINT;		/* Signed pointer size integer */
+typedef unsigned S2CUINT;	/* Unsigned pointer size interger */
+
+typedef int PAGELINK;		/* 32-bit sc_pagelink values */
+#define MAXS2CINT  0x7fffffff	/* Maximum value of an S2CINT */
+#define MSBS2CUINT 0x80000000	/* S2CUINT with 1 in the MSB */
+
+#define STACKPTR( x ) x = sc_processor_register( 0 )
+
+#include <setjmp.h>
+typedef jmp_buf sc_jmp_buf;
+
+/* Horrid kludge.  See callcc.c for the full story: */
+#define LAZY_STACK_POP 1
+#define LAZY_STACK_INCREMENT 4
+
 #endif
 
 /***************/
@
