summaryrefslogtreecommitdiff
path: root/java/cacao/files/patch-boehm-gc__include__private__gcconfig.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-10-05 20:40:39 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-10-05 20:40:39 +0000
commitaff852ecefa7e1f578aac61391817ef208031165 (patch)
treeb24adc88a423563cc6bc7f67ef613cd5df131f7a /java/cacao/files/patch-boehm-gc__include__private__gcconfig.h
parent- Update to 4.2 build2007. (diff)
- Update to 1.6.0.
- Reset maintainership. See ports/164941. - Make it as amd64 and i386 only. Other architectures needs porting. - Reduce Makefile headers, add licenses, and convert to optionsNG. - Add an option to build with native JDK. When it is not selected, GCJ is used instead. Turned on by default.
Diffstat (limited to 'java/cacao/files/patch-boehm-gc__include__private__gcconfig.h')
-rw-r--r--java/cacao/files/patch-boehm-gc__include__private__gcconfig.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/java/cacao/files/patch-boehm-gc__include__private__gcconfig.h b/java/cacao/files/patch-boehm-gc__include__private__gcconfig.h
new file mode 100644
index 000000000000..49eee7724f36
--- /dev/null
+++ b/java/cacao/files/patch-boehm-gc__include__private__gcconfig.h
@@ -0,0 +1,89 @@
+--- src/mm/boehm-gc/include/private/gcconfig.h.orig 2012-09-03 12:10:00.000000000 -0400
++++ src/mm/boehm-gc/include/private/gcconfig.h 2012-10-05 13:21:12.000000000 -0400
+@@ -69,8 +69,9 @@
+ /* Determine the machine type: */
+ # if defined(__arm__) || defined(__thumb__)
+ # define ARM32
+-# if !defined(LINUX) && !defined(NETBSD) && !defined(OPENBSD) \
+- && !defined(DARWIN) && !defined(_WIN32) && !defined(__CEGCC__)
++# if !defined(LINUX) && !defined(FREEBSD) && !defined(NETBSD) \
++ && !defined(OPENBSD) && !defined(DARWIN) && !defined(_WIN32) \
++ && !defined(__CEGCC__)
+ # define NOSYS
+ # define mach_type_known
+ # endif
+@@ -366,6 +367,10 @@
+ # define SPARC
+ # define mach_type_known
+ # endif
++# if defined(FREEBSD) && defined(__arm__)
++# define ARM32
++# define mach_type_known
++# endif
+ # if defined(bsdi) && (defined(i386) || defined(__i386__))
+ # define I386
+ # define BSDI
+@@ -843,8 +848,6 @@
+ # ifndef GC_FREEBSD_THREADS
+ # define MPROTECT_VDB
+ # endif
+-# define SIG_SUSPEND SIGUSR1
+-# define SIG_THR_RESTART SIGUSR2
+ # define FREEBSD_STACKBOTTOM
+ # ifdef __ELF__
+ # define DYNAMIC_LOADING
+@@ -1032,8 +1035,6 @@
+ # endif
+ # ifdef FREEBSD
+ # define OS_TYPE "FREEBSD"
+-# define SIG_SUSPEND SIGUSR1
+-# define SIG_THR_RESTART SIGUSR2
+ # define FREEBSD_STACKBOTTOM
+ # ifdef __ELF__
+ # define DYNAMIC_LOADING
+@@ -1284,9 +1285,6 @@
+ # define SIG_THR_RESTART (32+5)
+ extern int _end[];
+ # define DATAEND (ptr_t)(_end)
+-# else
+-# define SIG_SUSPEND SIGUSR1
+-# define SIG_THR_RESTART SIGUSR2
+ # endif
+ # define FREEBSD_STACKBOTTOM
+ # ifdef __ELF__
+@@ -1608,8 +1606,6 @@
+ # ifdef FREEBSD
+ # define OS_TYPE "FREEBSD"
+ /* MPROTECT_VDB is not yet supported at all on FreeBSD/alpha. */
+-# define SIG_SUSPEND SIGUSR1
+-# define SIG_THR_RESTART SIGUSR2
+ # define FREEBSD_STACKBOTTOM
+ # ifdef __ELF__
+ # define DYNAMIC_LOADING
+@@ -1898,6 +1894,16 @@
+ # define DATAEND ((ptr_t)(&_end))
+ # define DYNAMIC_LOADING
+ # endif
++# ifdef FREEBSD
++# define ALIGNMENT 4
++# define OS_TYPE "FREEBSD"
++# ifdef __ELF__
++# define DYNAMIC_LOADING
++# endif
++# define HEURISTIC2
++ extern char etext[];
++# define SEARCH_FOR_DATA_START
++# endif
+ # ifdef NOSYS
+ /* __data_start is usually defined in the target linker script. */
+ extern int __data_start[];
+@@ -2066,9 +2072,6 @@
+ # define SIG_THR_RESTART (32+5)
+ extern int _end[];
+ # define DATAEND (ptr_t)(_end)
+-# else
+-# define SIG_SUSPEND SIGUSR1
+-# define SIG_THR_RESTART SIGUSR2
+ # endif
+ # define FREEBSD_STACKBOTTOM
+ # ifdef __ELF__