]> granicus.if.org Git - gc/commitdiff
2010-08-18 Ivan Maidanski <ivmai@mail.ru> (really Andreas Tobler)
authorivmai <ivmai>
Wed, 18 Aug 2010 19:16:51 +0000 (19:16 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:54 +0000 (21:06 +0400)
* include/private/gcconfig.h: Add support for FreeBSD on ppc64.

ChangeLog
include/private/gcconfig.h

index d0aecaeadaeb5c9257de6d582d0a18d3aa54cae6..20373dd094238a2c5599906180d1fa56015aa1bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-18  Ivan Maidanski <ivmai@mail.ru> (really Andreas Tobler)
+
+       * include/private/gcconfig.h: Add support for FreeBSD on ppc64.
+
 2010-08-18  Ivan Maidanski <ivmai@mail.ru> (with help from Andreas Tobler)
 
        * os_dep.c (PROTECT, UNPROTECT): Correct VM_PROT_EXEC to
index ae329da850f686701a5a67a59f3c383f8a065509..ac60774bef88fbd285cda09e1d5085357b518837 100644 (file)
 #     define DYNAMIC_LOADING
 #   endif
 #   ifdef FREEBSD
-#       define ALIGNMENT 4
+#       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