summaryrefslogtreecommitdiff
path: root/devel/boehm-gc/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'devel/boehm-gc/patches/patch-ad')
-rw-r--r--devel/boehm-gc/patches/patch-ad77
1 files changed, 0 insertions, 77 deletions
diff --git a/devel/boehm-gc/patches/patch-ad b/devel/boehm-gc/patches/patch-ad
deleted file mode 100644
index e93893895f9..00000000000
--- a/devel/boehm-gc/patches/patch-ad
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD: patch-ad,v 1.17 2004/06/28 15:45:18 toshii Exp $
-
---- include/private/gcconfig.h.orig 2003-06-17 11:01:23.000000000 +0900
-+++ include/private/gcconfig.h
-@@ -85,7 +85,7 @@
- # define SPARC
- # define mach_type_known
- # endif
--# if defined(NETBSD) && defined(m68k)
-+# if defined(NETBSD) && (defined(m68k) || defined(__m68k__))
- # define M68K
- # define mach_type_known
- # endif
-@@ -93,7 +93,7 @@
- # define POWERPC
- # define mach_type_known
- # endif
--# if defined(NETBSD) && defined(__arm32__)
-+# if defined(NETBSD) && (defined(__arm32__) || defined(__arm__))
- # define ARM32
- # define mach_type_known
- # endif
-@@ -106,6 +106,10 @@
- # endif
- # define mach_type_known
- # endif
-+# if defined(__NetBSD__) && defined(__vax__)
-+# define VAX
-+# define mach_type_known
-+# endif
- # if defined(mips) || defined(__mips) || defined(_mips)
- # define MIPS
- # if defined(nec_ews) || defined(_nec_ews)
-@@ -220,6 +224,10 @@
- # define X86_64
- # define mach_type_known
- # endif
-+# if defined(__NetBSD__) && defined(__x86_64__)
-+# define X86_64
-+# define mach_type_known
-+# endif
- # if defined(LINUX) && (defined(__ia64__) || defined(__ia64))
- # define IA64
- # define mach_type_known
-@@ -601,8 +609,14 @@
- # ifdef NETBSD
- # define OS_TYPE "NETBSD"
- # define HEURISTIC2
-- extern char etext[];
--# define DATASTART ((ptr_t)(etext))
-+# ifdef __ELF__
-+# define DATASTART GC_data_start
-+# define DYNAMIC_LOADING
-+# else
-+ extern char etext[];
-+# define DATASTART ((ptr_t)(etext))
-+# endif
-+# define USE_GENERIC_PUSH_REGS
- # endif
- # ifdef LINUX
- # define OS_TYPE "LINUX"
-@@ -1794,6 +1808,15 @@
- # define PREFETCH_FOR_WRITE(x) \
- __asm__ __volatile__ (" prefetchw %0": : "m"(*(char *)(x)))
- # endif
-+# ifdef NETBSD
-+# define OS_TYPE "NETBSD"
-+# define HEURISTIC2
-+# define DATASTART GC_data_start
-+# define ELFCLASS32 32
-+# define ELFCLASS64 64
-+# define ELF_CLASS ELFCLASS64
-+# define DYNAMIC_LOADING
-+# endif
- # endif
-
- #if defined(LINUX) && defined(REDIRECT_MALLOC)