[Gc] [patch] FreeBSD/powerpc64 support

Andreas Tobler andreast-list at fgznet.ch
Wed Aug 18 12:05:27 PDT 2010


Hi Ivan, all,

the below snippet adds support for FreeBSD/powerpc64.

Built and successfully tested on today's CVS.

Ok to apply ?

Thanks,
Andreas

Index: include/private/gcconfig.h
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/include/private/gcconfig.h,v
retrieving revision 1.66
diff -u -r1.66 gcconfig.h
--- include/private/gcconfig.h	21 May 2010 20:08:58 -0000	1.66
+++ include/private/gcconfig.h	18 Aug 2010 19:03:33 -0000
@@ -841,7 +841,12 @@
  #     define DYNAMIC_LOADING
  #   endif
  #   ifdef FREEBSD
+#     if defined(__powerpc64__)
+#       define ALIGNMENT 8
+#       define CPP_WORDSZ 64
+#     else
  #       define ALIGNMENT 4
+#     endif
  #       define OS_TYPE "FREEBSD"
  #       ifndef GC_FREEBSD_THREADS
  #           define MPROTECT_VDB


More information about the Gc mailing list