Enough FreeBSD/Alpha support to at least allow this to compile.
Functionality is untested at this time.
This commit is contained in:
parent
8f66eb72c8
commit
cd8bbd70a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30839
2 changed files with 41 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
--- gcconfig.h.orig Tue Oct 26 15:40:54 1999
|
||||
+++ gcconfig.h Tue Jul 18 21:08:17 2000
|
||||
+++ gcconfig.h Wed Jul 19 02:07:50 2000
|
||||
@@ -22,10 +22,23 @@
|
||||
|
||||
/* Machine specific parts contributed by various people. See README file. */
|
||||
|
@ -95,16 +95,16 @@
|
|||
# define mach_type_known
|
||||
# endif
|
||||
-# if defined(__OpenBSD__) && defined(i386)
|
||||
+# if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(bsdi)) && (defined(i386) || defined(__i386__))
|
||||
# define I386
|
||||
-# define OPENBSD
|
||||
# define mach_type_known
|
||||
# endif
|
||||
-# if defined(__FreeBSD__) && defined(i386)
|
||||
-# define I386
|
||||
-# define FREEBSD
|
||||
-# define OPENBSD
|
||||
-# define mach_type_known
|
||||
-# endif
|
||||
-# if defined(__FreeBSD__) && defined(i386)
|
||||
+# if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(bsdi)) && (defined(i386) || defined(__i386__))
|
||||
# define I386
|
||||
-# define FREEBSD
|
||||
# define mach_type_known
|
||||
# endif
|
||||
-# if defined(__NetBSD__) && defined(i386)
|
||||
-# define I386
|
||||
-# define NETBSD
|
||||
|
@ -127,7 +127,7 @@
|
|||
/* M88K ==> Motorola 88XX0 */
|
||||
/* (CX_UX and DGUX) */
|
||||
/* S370 ==> 370-like machine */
|
||||
@@ -965,6 +957,24 @@
|
||||
@@ -965,6 +957,31 @@
|
||||
# define CPP_WORDSZ 64
|
||||
# define MPROTECT_VDB
|
||||
# define DYNAMIC_LOADING
|
||||
|
@ -136,19 +136,26 @@
|
|||
+# define OS_TYPE "FREEBSD"
|
||||
+# define CPP_WORDSZ 64
|
||||
+# define HEURISTIC2
|
||||
+# define DATASTART ((ptr_t)(&etext))
|
||||
+# define STACKBOTTOM ((ptr_t) 0x120000000)
|
||||
+/* # define DATASTART ((ptr_t) 0x140000000) */
|
||||
+# define DATASTART GC_data_start
|
||||
+/* # define DYNAMIC_LOADING */
|
||||
+ extern int _end;
|
||||
+# define DATAEND (&_end)
|
||||
+# endif
|
||||
+# if defined(NETBSD)
|
||||
+# define OS_TYPE "NETBSD"
|
||||
+# define CPP_WORDSZ 64
|
||||
+# define HEURISTIC2
|
||||
+# define DATASTART ((ptr_t)(&etext))
|
||||
+ extern int _end;
|
||||
+# define DATAEND (&_end)
|
||||
+# endif
|
||||
+# if defined(OPENBSD)
|
||||
+# define OS_TYPE "OPENBSD"
|
||||
+# define CPP_WORDSZ 64
|
||||
+# define HEURISTIC2
|
||||
+# define DATASTART ((ptr_t)(&etext))
|
||||
+ extern int _end;
|
||||
+# define DATAEND (&_end)
|
||||
# endif
|
||||
# ifdef LINUX
|
||||
# define OS_TYPE "LINUX"
|
||||
|
|
22
devel/boehm-gc/files/patch-af
Normal file
22
devel/boehm-gc/files/patch-af
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- os_dep.c.orig Wed Jul 19 01:59:57 2000
|
||||
+++ os_dep.c Wed Jul 19 02:06:27 2000
|
||||
@@ -81,2 +81,7 @@
|
||||
|
||||
+# if defined(FREEBSD) && \
|
||||
+ (defined(POWERPC) || defined(SPARC) || defined(ALPHA) || defined(IA64))
|
||||
+# define NEED_FIND_LIMIT
|
||||
+# endif
|
||||
+
|
||||
#ifdef NEED_FIND_LIMIT
|
||||
@@ -85,3 +90,3 @@
|
||||
|
||||
-#ifdef FREEBSD
|
||||
+#if defined(FREEBSD) && defined(I386)
|
||||
# include <machine/trap.h>
|
||||
@@ -144,4 +149,4 @@
|
||||
|
||||
-#if defined(LINUX) && (defined(POWERPC) || defined(SPARC) || defined(ALPHA) \
|
||||
- || defined(IA64))
|
||||
+#if (defined(FREEBSD) || defined(LINUX)) \
|
||||
+ && (defined(POWERPC) || defined(SPARC) || defined(ALPHA) || defined(IA64))
|
||||
/* The I386 case can be handled without a search. The Alpha case */
|
Loading…
Reference in a new issue