[Gc] Re: [patch] FreeBSD/powerpc64 support

Ivan Maidanski ivmai at mail.ru
Wed Aug 18 12:19:35 PDT 2010


Hi!

Yes, I've checked it in with one change (I also explicitly define HBLKSIZE to 4096 similar to other OSes on ppc64).

Regards.

Wed, 18 Aug 2010 21:05:27 +0200 Andreas Tobler <andreast-list at fgznet.ch>:

> 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