This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] powerpc64 FreeBSD support for boehm-gc
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Java Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 20 Dec 2013 23:15:49 +0100
- Subject: [patch] powerpc64 FreeBSD support for boehm-gc
- Authentication-results: sourceware.org; auth=none
Hi,
the below patch adds support for powerpc64 FreeBSD for the boehm-gc.
The diff is already available in boehm-gc trunk.
Ok for gcc trunk?
Thanks,
Andreas
2013-12-20 Andreas Tobler <andreast@gcc.gnu.ch>
* include/private/gcconfig.h: Add FreeBSD powerpc64 defines.
Index: include/private/gcconfig.h
===================================================================
--- include/private/gcconfig.h (revision 206155)
+++ include/private/gcconfig.h (working copy)
@@ -849,7 +849,15 @@
# define NO_PTHREAD_TRYLOCK
# endif
# ifdef FREEBSD
+# if defined(__powerpc64__)
+# define ALIGNMENT 8
+# define CPP_WORDSZ 64
+# ifndef HBLKSIZE
+# define HBLKSIZE 4096
+# endif
+# else
# define ALIGNMENT 4
+# endif
# define OS_TYPE "FREEBSD"
# ifndef GC_FREEBSD_THREADS
# define MPROTECT_VDB